Copyright | (c) Dima Szamozvancev |
---|---|
License | MIT |
Maintainer | ds709@cam.ac.uk |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Properties and combinators for Music
values.
- musicDur :: Primitive l => Music (m :: Partiture n l) -> Dur l
- durToInt :: Primitive d => Dur d -> Int
- duration :: Primitive l => Music (m :: Partiture n l) -> Int
- voices :: Music m -> Int
- pad :: (HarmConstraints m (FromSilence b), Primitive b) => Music (m :: Partiture (a - 1) b) -> Music (m +-+ FromSilence b :: Partiture a b)
- play :: Primitive d => Melody m d -> Music m
Music properties and padding
musicDur :: Primitive l => Music (m :: Partiture n l) -> Dur l Source #
Get the duration of a piece of music.
duration :: Primitive l => Music (m :: Partiture n l) -> Int Source #
Get the numeric duration of a piece of music.
pad :: (HarmConstraints m (FromSilence b), Primitive b) => Music (m :: Partiture (a - 1) b) -> Music (m +-+ FromSilence b :: Partiture a b) Source #
Add an empty voice to the end of a piece of music.