Copyright | (c) Dima Szamozvancev |
---|---|
License | MIT |
Maintainer | ds709@cam.ac.uk |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions and combinators for transforming Scores. Allows for more flexibility, but no static correctness guarantees.
- transpose :: Int -> Score -> Score
- delay :: Ticks -> Score -> Score
- (><) :: MidiTrack -> MidiTrack -> MidiTrack
- (+++) :: Score -> Score -> Score
- flatten :: [Score] -> Score
- reprise :: Int -> Score -> Score
- cascade :: Int -> (Score -> Score) -> Score -> Score
- scale :: Int -> Int -> Score -> Score
- volta :: Score -> [Score] -> Score
Documentation
delay :: Ticks -> Score -> Score Source #
Delay a score by the given number of ticks (60ths of a thirty-second note).
cascade :: Int -> (Score -> Score) -> Score -> Score Source #
Repeat the score, successively applying the function to each repetition. cascade 4 f s = s +++ f s +++ f (f s) +++ f (f (f s))