Euterpea-2.0.7: Library for computer music research and education
Safe HaskellSafe-Inferred
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

Instances details
ToMusic1 Note1 Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 Pitch Source # 
Instance details

Defined in Euterpea.Music

Bounded PitchClass Source # 
Instance details

Defined in Euterpea.Music

Enum PitchClass Source # 
Instance details

Defined in Euterpea.Music

Read PitchClass Source # 
Instance details

Defined in Euterpea.Music

Show PitchClass Source # 
Instance details

Defined in Euterpea.Music

NFData PitchClass Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: PitchClass -> () #

Eq PitchClass Source # 
Instance details

Defined in Euterpea.Music

Ord PitchClass Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 (Pitch, Volume) Source # 
Instance details

Defined in Euterpea.Music

data Primitive a Source #

Constructors

Note Dur a 
Rest Dur 

Instances

Instances details
Functor Primitive Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Show a => Show (Primitive a) Source # 
Instance details

Defined in Euterpea.Music

NFData a => NFData (Primitive a) Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Primitive a -> () #

Eq a => Eq (Primitive a) Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord a => Ord (Primitive a) Source # 
Instance details

Defined in Euterpea.Music

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

Instances details
Functor Music Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Show a => Show (Music a) Source # 
Instance details

Defined in Euterpea.Music

Methods

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

show :: Music a -> String #

showList :: [Music a] -> ShowS #

NFData a => NFData (Music a) Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Music a -> () #

Eq a => Eq (Music a) Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord a => Ord (Music a) Source # 
Instance details

Defined in Euterpea.Music

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 #

data Control Source #

Instances

Instances details
Show Control Source # 
Instance details

Defined in Euterpea.Music

NFData Control Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Control -> () #

Eq Control Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord Control Source # 
Instance details

Defined in Euterpea.Music

data Mode Source #

Instances

Instances details
Show Mode Source # 
Instance details

Defined in Euterpea.Music

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

NFData Mode Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Mode -> () #

Eq Mode Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord Mode Source # 
Instance details

Defined in Euterpea.Music

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 #

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 Dynamic Source #

Instances

Instances details
Show Dynamic Source # 
Instance details

Defined in Euterpea.Music

NFData Dynamic Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Dynamic -> () #

Eq Dynamic Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord Dynamic Source # 
Instance details

Defined in Euterpea.Music

data Tempo Source #

Instances

Instances details
Show Tempo Source # 
Instance details

Defined in Euterpea.Music

Methods

showsPrec :: Int -> Tempo -> ShowS #

show :: Tempo -> String #

showList :: [Tempo] -> ShowS #

NFData Tempo Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: Tempo -> () #

Eq Tempo Source # 
Instance details

Defined in Euterpea.Music

Methods

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

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

Ord Tempo Source # 
Instance details

Defined in Euterpea.Music

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 #

data NoteHead Source #

Instances

Instances details
Show NoteHead Source # 
Instance details

Defined in Euterpea.Music

Eq NoteHead Source # 
Instance details

Defined in Euterpea.Music

Ord NoteHead Source # 
Instance details

Defined in Euterpea.Music

data NoteAttribute Source #

Instances

Instances details
ToMusic1 Note1 Source # 
Instance details

Defined in Euterpea.Music

Show NoteAttribute Source # 
Instance details

Defined in Euterpea.Music

NFData NoteAttribute Source # 
Instance details

Defined in Euterpea.IO.MIDI.Play

Methods

rnf :: NoteAttribute -> () #

Eq NoteAttribute Source # 
Instance details

Defined in Euterpea.Music

class ToMusic1 a where Source #

Methods

toMusic1 :: Music a -> Music1 Source #

Instances

Instances details
ToMusic1 AbsPitch Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 Note1 Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 Pitch Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 (AbsPitch, Volume) Source # 
Instance details

Defined in Euterpea.Music

ToMusic1 (Pitch, Volume) Source # 
Instance details

Defined in Euterpea.Music

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 #