- data Note nVol nPch a = Note {}
- absNote :: (Seg nVol, Seg nPch) => Note nVol nPch a -> (Amplitude, Frequency)
- data Drum n a = Drum {
- drumVolume :: Volume n
- drumParam :: Maybe a
- absDrum :: Seg nVol => Drum nVol a -> Amplitude
- bnr :: Score a
- wnr :: Score a
- hnr :: Score a
- qnr :: Score a
- enr :: Score a
- snr :: Score a
- tnr :: Score a
- dbnr :: Score a
- dwnr :: Score a
- dhnr :: Score a
- dqnr :: Score a
- denr :: Score a
- dsnr :: Score a
- dtnr :: Score a
- bn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- wn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- hn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- qn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- en :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- sn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- tn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dbn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dwn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dhn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dqn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- den :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dsn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- dtn :: (Vol nVol, Pch nPch) => Tone nPch -> Score (Note nVol nPch a)
- bd :: Vol nVol => Accent -> Score (Drum nVol a)
- wd :: Vol nVol => Accent -> Score (Drum nVol a)
- hd :: Vol nVol => Accent -> Score (Drum nVol a)
- qd :: Vol nVol => Accent -> Score (Drum nVol a)
- ed :: Vol nVol => Accent -> Score (Drum nVol a)
- sd :: Vol nVol => Accent -> Score (Drum nVol a)
- td :: Vol nVol => Accent -> Score (Drum nVol a)
- dbd :: Vol nVol => Accent -> Score (Drum nVol a)
- dwd :: Vol nVol => Accent -> Score (Drum nVol a)
- dhd :: Vol nVol => Accent -> Score (Drum nVol a)
- dqd :: Vol nVol => Accent -> Score (Drum nVol a)
- ded :: Vol nVol => Accent -> Score (Drum nVol a)
- dsd :: Vol nVol => Accent -> Score (Drum nVol a)
- dtd :: Vol nVol => Accent -> Score (Drum nVol a)
Types
Value of type Note
contains pitch, volume and some specific
timbre information.
(Eq nVol, Eq nPch, Eq a, Seg nVol, Seg nPch) => Eq (Note nVol nPch a) | |
(Show nVol, Show nPch, Show a, Seg nVol, Seg nPch) => Show (Note nVol nPch a) | |
(Seg nVol, Seg nPch) => ToneFunctor (Note nVol nPch a) | |
(Seg nVol, Seg nPch) => PitchFunctor (Note nVol nPch a) | |
(Seg nVol, Seg nPch) => LevelFunctor (Note nVol nPch a) | |
(Seg nVol, Seg nPch) => VolumeFunctor (Note nVol nPch a) |
Drum | |
|
Shortcuts
Shortcuts for rests, notes and drums construction. Naming conventions : name has two parts, first describes duration of resulting score and second describes that result is rest, note or drum note.
For name xy
First part x
can be [b | w | h | q | e | s | t | d[x] ]
b
means brewis (duration is 2)
w
means whole (duration is 1)
h
means half (duration is 1/2)
q
means quater (duration is 1/4)
e
means eighth (duration is 1/8)
s
means sixteenth (duration is 1/16)
t
means thirty second (duration is 1/32)
d[x]
means dotted [x] (stretch 1.5 $ x)
Second part y
can be [nr | n | d]
nr
means rest
n
means result contains Note
d
means result contains Drum
Rests
Notes
It is assumed here that for Note
most important information is
tone and shortcuts construct Note
values from Tone
's,
other values are set to default values. It means that scale is
equaly tempered, bend is set to zero, volume level is set to
mediumLevel,
accent is set to zero and volume diapason is set to interval (1e-5, 1).