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 utilities for constructing primitive notes, rests, and tempo.
- rest :: Dur -> Music Dur a
- note :: Dur -> a -> Music Dur a
- bpm :: Integer -> Music a b -> Music a b
- tempo :: Rational -> Music a b -> Music a b
- m4 :: Monoid a => a -> a -> a -> a -> a
- quad :: Music a b -> Music a b
- double :: Music a b -> Music a b
- normal :: Music a b -> Music a b
- half :: Music a b -> Music a b
- quarter :: Music a b -> Music a b
- tuplets :: Rational -> Music a b -> Music a b
- triplets :: Music a b -> Music a b
- quintuplets :: Music a b -> Music a b
- sr :: Music Dur a
- er :: Music Dur a
- qr :: Music Dur a
- hr :: Music Dur a
- wr :: Music Dur a
Documentation
m4 :: Monoid a => a -> a -> a -> a -> a Source
Convenience function for concatenating four compositions together sequentially. Most general type signature 'cause why not?
normal :: Music a b -> Music a b Source
Set the tempo of a composition to 1 (default, typically idempotent).
tuplets :: Rational -> Music a b -> Music a b Source
Convenience constructor for smashing n
values into a single 1-duration measure.
quintuplets :: Music a b -> Music a b Source
Play 5 notes per measure.