haskore-0.2.0.1: The Haskore Computer Music System

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

bnr :: T noteSource

wnr :: T noteSource

hnr :: T noteSource

qnr :: T noteSource

enr :: T noteSource

snr :: T noteSource

tnr :: T noteSource

sfnr :: T noteSource

dwnr :: T noteSource

dhnr :: T noteSource

dqnr :: T noteSource

denr :: T noteSource

dsnr :: T noteSource

dtnr :: T noteSource

ddhnr :: T noteSource

ddqnr :: T noteSource

ddenr :: T noteSource

line :: [T note] -> T noteSource

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

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

type Dur = TSource

accent :: Rational -> T note -> T noteSource

crescendo :: Rational -> T note -> T noteSource

diminuendo :: Rational -> T note -> T noteSource

loudness1 :: Rational -> T note -> T noteSource

ritardando :: Rational -> T note -> T noteSource

accelerando :: Rational -> T note -> T noteSource

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

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

defltLegato :: T note -> T noteSource

defltStaccato :: T note -> T noteSource

defltAccent :: T note -> T noteSource

bigAccent :: T note -> T noteSource