haskore-0.2.0.7: The Haskore Computer Music System

Safe HaskellSafe-Inferred
LanguageHaskell2010

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 instr Source

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

noteFromStdMelodyNote :: instr -> Note -> Note drum instr Source

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

fromStdMelody :: instr -> T -> T drum instr Source

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

ignores the note attributes

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

bnr :: T note Source

wnr :: T note Source

hnr :: T note Source

qnr :: T note Source

enr :: T note Source

snr :: T note Source

tnr :: T note Source

sfnr :: T note Source

dwnr :: T note Source

dhnr :: T note Source

dqnr :: T note Source

denr :: T note Source

dsnr :: T note Source

dtnr :: T note Source

ddhnr :: T note Source

ddqnr :: T note Source

ddenr :: T note Source

line :: [T note] -> T note Source

chord :: [T note] -> T note Source

changeTempo :: DurRatio -> T note -> T note Source

transpose :: Relative -> T note -> T note Source

phrase :: PhraseAttribute -> T note -> T note Source

(+:+) :: T note -> T note -> T note infixr 7 Source

(=:=) :: T note -> T note -> T note infixr 6 Source

type Dur = T Source

accent :: Rational -> T note -> T note Source

crescendo :: Rational -> T note -> T note Source

diminuendo :: Rational -> T note -> T note Source

loudness1 :: Rational -> T note -> T note Source

ritardando :: Rational -> T note -> T note Source

accelerando :: Rational -> T note -> T note Source

staccato :: Dur -> T note -> T note Source

legato :: Dur -> T note -> T note Source

defltLegato :: T note -> T note Source

defltStaccato :: T note -> T note Source

defltAccent :: T note -> T note Source

bigAccent :: T note -> T note Source