Euterpea-2.0.2: Library for computer music research and education

Safe HaskellSafe
LanguageHaskell98

Euterpea.Music

Documentation

data PitchClass Source #

Constructors

Cff 
Cf 
C 
Dff 
Cs 
Df 
Css 
D 
Eff 
Ds 
Ef 
Fff 
Dss 
E 
Ff 
Es 
F 
Gff 
Ess 
Fs 
Gf 
Fss 
G 
Aff 
Gs 
Af 
Gss 
A 
Bff 
As 
Bf 
Ass 
B 
Bs 
Bss 

Instances

data Primitive a Source #

Constructors

Note Dur a 
Rest Dur 

Instances

Functor Primitive Source # 

Methods

fmap :: (a -> b) -> Primitive a -> Primitive b #

(<$) :: a -> Primitive b -> Primitive a #

Eq a => Eq (Primitive a) Source # 

Methods

(==) :: Primitive a -> Primitive a -> Bool #

(/=) :: Primitive a -> Primitive a -> Bool #

Ord a => Ord (Primitive a) Source # 
Show a => Show (Primitive a) Source # 

data Music a Source #

Constructors

Prim (Primitive a) 
(Music a) :+: (Music a) infixr 5 
(Music a) :=: (Music a) infixr 5 
Modify Control (Music a) 

Instances

Functor Music Source # 

Methods

fmap :: (a -> b) -> Music a -> Music b #

(<$) :: a -> Music b -> Music a #

Eq a => Eq (Music a) Source # 

Methods

(==) :: Music a -> Music a -> Bool #

(/=) :: Music a -> Music a -> Bool #

Ord a => Ord (Music a) Source # 

Methods

compare :: Music a -> Music a -> Ordering #

(<) :: Music a -> Music a -> Bool #

(<=) :: Music a -> Music a -> Bool #

(>) :: Music a -> Music a -> Bool #

(>=) :: Music a -> Music a -> Bool #

max :: Music a -> Music a -> Music a #

min :: Music a -> Music a -> Music a #

Show a => Show (Music a) Source # 

Methods

showsPrec :: Int -> Music a -> ShowS #

show :: Music a -> String #

showList :: [Music a] -> ShowS #

data Mode Source #

Constructors

Major 
Minor 

Instances

Eq Mode Source # 

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #

Ord Mode Source # 

Methods

compare :: Mode -> Mode -> Ordering #

(<) :: Mode -> Mode -> Bool #

(<=) :: Mode -> Mode -> Bool #

(>) :: Mode -> Mode -> Bool #

(>=) :: Mode -> Mode -> Bool #

max :: Mode -> Mode -> Mode #

min :: Mode -> Mode -> Mode #

Show Mode Source # 

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

data InstrumentName Source #

Constructors

AcousticGrandPiano 
BrightAcousticPiano 
ElectricGrandPiano 
HonkyTonkPiano 
RhodesPiano 
ChorusedPiano 
Harpsichord 
Clavinet 
Celesta 
Glockenspiel 
MusicBox 
Vibraphone 
Marimba 
Xylophone 
TubularBells 
Dulcimer 
HammondOrgan 
PercussiveOrgan 
RockOrgan 
ChurchOrgan 
ReedOrgan 
Accordion 
Harmonica 
TangoAccordion 
AcousticGuitarNylon 
AcousticGuitarSteel 
ElectricGuitarJazz 
ElectricGuitarClean 
ElectricGuitarMuted 
OverdrivenGuitar 
DistortionGuitar 
GuitarHarmonics 
AcousticBass 
ElectricBassFingered 
ElectricBassPicked 
FretlessBass 
SlapBass1 
SlapBass2 
SynthBass1 
SynthBass2 
Violin 
Viola 
Cello 
Contrabass 
TremoloStrings 
PizzicatoStrings 
OrchestralHarp 
Timpani 
StringEnsemble1 
StringEnsemble2 
SynthStrings1 
SynthStrings2 
ChoirAahs 
VoiceOohs 
SynthVoice 
OrchestraHit 
Trumpet 
Trombone 
Tuba 
MutedTrumpet 
FrenchHorn 
BrassSection 
SynthBrass1 
SynthBrass2 
SopranoSax 
AltoSax 
TenorSax 
BaritoneSax 
Oboe 
Bassoon 
EnglishHorn 
Clarinet 
Piccolo 
Flute 
Recorder 
PanFlute 
BlownBottle 
Shakuhachi 
Whistle 
Ocarina 
Lead1Square 
Lead2Sawtooth 
Lead3Calliope 
Lead4Chiff 
Lead5Charang 
Lead6Voice 
Lead7Fifths 
Lead8BassLead 
Pad1NewAge 
Pad2Warm 
Pad3Polysynth 
Pad4Choir 
Pad5Bowed 
Pad6Metallic 
Pad7Halo 
Pad8Sweep 
FX1Train 
FX2Soundtrack 
FX3Crystal 
FX4Atmosphere 
FX5Brightness 
FX6Goblins 
FX7Echoes 
FX8SciFi 
Sitar 
Banjo 
Shamisen 
Koto 
Kalimba 
Bagpipe 
Fiddle 
Shanai 
TinkleBell 
Agogo 
SteelDrums 
Woodblock 
TaikoDrum 
MelodicDrum 
SynthDrum 
ReverseCymbal 
GuitarFretNoise 
BreathNoise 
Seashore 
BirdTweet 
TelephoneRing 
Helicopter 
Applause 
Gunshot 
Percussion 
CustomInstrument String 

data Tempo Source #

Instances

Eq Tempo Source # 

Methods

(==) :: Tempo -> Tempo -> Bool #

(/=) :: Tempo -> Tempo -> Bool #

Ord Tempo Source # 

Methods

compare :: Tempo -> Tempo -> Ordering #

(<) :: Tempo -> Tempo -> Bool #

(<=) :: Tempo -> Tempo -> Bool #

(>) :: Tempo -> Tempo -> Bool #

(>=) :: Tempo -> Tempo -> Bool #

max :: Tempo -> Tempo -> Tempo #

min :: Tempo -> Tempo -> Tempo #

Show Tempo Source # 

Methods

showsPrec :: Int -> Tempo -> ShowS #

show :: Tempo -> String #

showList :: [Tempo] -> ShowS #

note :: Dur -> a -> Music a Source #

tempo :: Dur -> Music a -> Music a Source #

line :: [Music a] -> Music a Source #

chord :: [Music a] -> Music a Source #

line1 :: [Music a] -> Music a Source #

chord1 :: [Music a] -> Music a Source #

offset :: Dur -> Music a -> Music a Source #

times :: Int -> Music a -> Music a Source #

dur :: Music a -> Dur Source #

cut :: Dur -> Music a -> Music a Source #

remove :: Dur -> Music a -> Music a Source #

type LazyDur = [Dur] Source #

(/=:) :: Music a -> Music a -> Music a Source #

data PercussionSound Source #

pMap :: (a -> b) -> Primitive a -> Primitive b Source #

mMap :: (a -> b) -> Music a -> Music b Source #

mFold :: (Primitive a -> b) -> (b -> b -> b) -> (b -> b -> b) -> (Control -> b -> b) -> Music a -> b Source #