Copyright | (c) Benjamin Kovach, 2014 |
---|---|
License | MIT |
Maintainer | bkovach13@gmail.com |
Stability | experimental |
Portability | Mac OSX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Implements the core data structures for use in the Bang library.
Documentation
Primitive objects in music are simply notes with duration and type, or rests with only duration.
A musical composition with duration type dur (typically Dur
) and instrument type a
(typically a PercussionSound
)
Simple data type representing different control structures for compositions.
BPM Integer | Set the beats per minute (WARNING: Only set this once, or BPM will multiply!) |
Tempo Rational | Set the speed for a section of music (default 1) |
Instrument InstrumentName | Change the instrument (currently unused) |
data InstrumentName Source
Simple data type representing the types of instruments Bang supports.
Currently, the only value is DrumSet
.
duration :: (Fractional a, Ord a) => Music a b -> a Source
Get the duration of a full composition