Safe Haskell | Safe-Infered |
---|
This module gives an example of complete musical structure. It defines the notion of note.
- data Note a = Note {}
- note :: Step -> Score (Note a)
- mapNoteParam :: (Maybe a -> Maybe b) -> Note a -> Note b
- data Drum a = Drum {
- drumVolume :: Volume
- drumParam :: Maybe a
- bam :: Accent -> Score (Drum a)
- mapDrumParam :: (Maybe a -> Maybe b) -> Drum a -> Drum b
- n0, n23, n22, n21, n20, n19, n18, n17, n16, n15, n14, n13, n12, n11, n10, n9, n8, n7, n6, n5, n4, n3, n2, n1 :: Score (Note a)
- bd, td, sd, ed, qd, hd, wd :: Accent -> Score (Drum a)
- dbd, dtd, dsd, ded, dqd, dhd, dwd :: Accent -> Score (Drum a)
Types
Note
has volume, pitch and some timbral paramters.
bam :: Accent -> Score (Drum a)Source
Constructs drum note with given accent. Level is set to the default value.
mapDrumParam :: (Maybe a -> Maybe b) -> Drum a -> Drum bSource
Updates drum-note's timbral paramters.
Shortcuts
Note shortcuts
Function n[i] is equivalent to call note i
.
n0, n23, n22, n21, n20, n19, n18, n17, n16, n15, n14, n13, n12, n11, n10, n9, n8, n7, n6, n5, n4, n3, n2, n1 :: Score (Note a)Source
Drum shortcuts
See Temporal.Music.Score shortcuts for naming conventions.