Copyright | (c) Benjamin Kovach, 2014 |
---|---|
License | MIT |
Maintainer | bkovach13@gmail.com |
Stability | experimental |
Portability | Mac OSX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module exports a number of functions to manipulate compositions in various ways.
- reverseMusic :: Music Dur b -> Music Dur b
- mirror :: Music Dur b -> Music Dur b
- mirrorR :: Music Dur b -> Music Dur b
- cross :: Music Dur b -> Music Dur b
- takeDur :: Dur -> Music Dur b -> Music Dur b
- dropDur :: Dur -> Music Dur b -> Music Dur b
- partitionDur :: Dur -> Music Dur b -> (Music Dur b, Music Dur b)
- hushFor :: Dur -> Music Dur b -> Music Dur b
- hushFrom :: Dur -> Music Dur b -> Music Dur b
- hushAt :: Dur -> Dur -> Music Dur b -> Music Dur b
- poly :: (Dur, Music Dur b) -> (Dur, Music Dur b) -> Music Dur b
- withDuration :: Dur -> Music Dur b -> Music Dur b
- repl :: Num a => Int -> Music a b -> Music a b
- rep :: Num a => Music a b -> Music a b
- fitL :: Music Dur b -> Music Dur b -> Music Dur b
- fitR :: Music Dur b -> Music Dur b -> Music Dur b
- normalize :: Dur -> [Music Dur b] -> Music Dur b
- normalizeC :: Dur -> [Music Dur b] -> Music Dur b
- normalize1 :: [Music Dur b] -> Music Dur b
- normalizeC1 :: [Music Dur b] -> Music Dur b
Documentation
takeDur :: Dur -> Music Dur b -> Music Dur b Source
Take the first d
duration units of a composition.
dropDur :: Dur -> Music Dur b -> Music Dur b Source
Drop the first d
duration units of a composition.
partitionDur :: Dur -> Music Dur b -> (Music Dur b, Music Dur b) Source
Split a composition at a specific duration and return the composition before said duration along with the rest of it.
hushFor :: Dur -> Music Dur b -> Music Dur b Source
Turn the first d
duration units of a composition into silence.
hushFrom :: Dur -> Music Dur b -> Music Dur b Source
Turn the rest of a composition into silence after d
duration units.
hushAt :: Dur -> Dur -> Music Dur b -> Music Dur b Source
Turn the section of a composition between pos
and d
into silence.
poly :: (Dur, Music Dur b) -> (Dur, Music Dur b) -> Music Dur b Source
Play a polyrhythm with m
having units of length 1/x and n
with units of length 1/y
Example:
poly (3, 3 #> bd) (4, 4 #> sn)
fitR :: Music Dur b -> Music Dur b -> Music Dur b Source
Fit the duration of a
into the duration of b
normalize :: Dur -> [Music Dur b] -> Music Dur b Source
Normalize the durations of each value in a list of Compositions to d
and compose them sequentially.
normalizeC :: Dur -> [Music Dur b] -> Music Dur b Source
Normalize the durations of each value in a list of Compositions to d
and compose them concurrently.