Safe Haskell | Safe |
---|---|

Language | Haskell2010 |

- class Transposable a where
- class Invertible f a where
- class Retrogradable f a where
- class Repeatable a where
- class Scalable a where
- musicToList :: Music a -> [(Maybe a, Duration)]
- listToMusic :: [(Maybe a, Duration)] -> Music a
- normalize :: Music a -> Music a

# Documentation

class Transposable a where Source #

Operator precedence.

Anything that can be transposed with an `Interval`

.

trans, trans_, snart, snart_ :: Interval -> a -> a Source #

(~>), (<~), (~~>), (<~~) :: a -> Interval -> a infixl 5 ~>, <~, ~~>, <~~ Source #

BoundEnum a => Transposable a Source # | |

Transposable FullPitch Source # | |

Transposable a => Transposable [a] Source # | |

Transposable a => Transposable (Music a) Source # | |

class Invertible f a where Source #

Invertible [] Interval Source # | |

Invertible [] AbsPitch Source # | |

Invertible [] Pitch Source # | |

(Show a, Invertible [] a) => Invertible Music a Source # | |

Invertible [] a => Invertible [] (Maybe a) Source # | |

Invertible [] a => Invertible [] (a, b) Source # | |

class Retrogradable f a where Source #

Retrogradable [] a Source # | |

Retrogradable Music a Source # | |

class Repeatable a where Source #

Anything that can be repeated a number of times.

Repeatable (Music a) Source # | |