haskore-0.2.0.3: The Haskore Computer Music System

Safe HaskellSafe-Infered

Haskore.Music.Rhythmic

Synopsis

Documentation

type T drum instr = T (Note drum instr)Source

data Note drum instr Source

Constructors

Note 

Fields

velocity :: Rational
 
body :: NoteBody drum instr
 

Instances

(Eq drum, Eq instr) => Eq (Note drum instr) 
(Ord instr, Ord drum) => Ord (Note drum instr) 
(Show drum, Show instr) => Show (Note drum instr) 

data NoteBody drum instr Source

Constructors

Tone 

Fields

instrument :: instr
 
pitch :: T
 
Drum 

Fields

drum :: drum
 

Instances

(Eq drum, Eq instr) => Eq (NoteBody drum instr) 
(Ord drum, Ord instr) => Ord (NoteBody drum instr) 
(Show drum, Show instr) => Show (NoteBody drum instr) 

maybeInstrument :: NoteBody drum instr -> Maybe instrSource

noteFromAttrs :: NoteAttributes -> NoteBody drum instr -> Note drum instrSource

noteFromStdMelodyNote :: instr -> Note -> Note drum instrSource

noteFromMelodyNote :: (attr -> (Rational, instr)) -> Note attr -> Note drum instrSource

fromStdMelody :: instr -> T -> T drum instrSource

fromMelodyNullAttr :: instr -> T () -> T drum instrSource

ignores the note attributes

fromMelody :: (attr -> (Rational, instr)) -> T attr -> T drum instrSource

bn, sfn, tn, sn, en, qn, hn, wn :: TSource

bnr, sfnr, tnr, snr, enr, qnr, hnr, wnr :: T noteSource

line, chord :: [T note] -> T noteSource

changeTempo :: DurRatio -> T note -> T noteSource

transpose :: Relative -> T note -> T noteSource

phrase :: PhraseAttribute -> T note -> T noteSource

(+:+), (=:=) :: T note -> T note -> T noteSource

type Dur = TSource

staccato, legato :: Dur -> T note -> T noteSource