Copyright | (c) Benjamin Kovach, 2014 |
---|---|
License | MIT |
Maintainer | bkovach13@gmail.com |
Stability | experimental |
Portability | Mac OSX |
Safe Haskell | None |
Language | Haskell2010 |
This module exports a number of functions that build primitive drum beats from various PercussionSound
s. It also exports
some convenient shorthands for common drum types (i.e. snare, bass, toms, and cymbals). The more bizarre instruments have
slightly longer construction functions, but you'll find all of the sounds' constructors here.
- data PercussionSound
- = BassDrum2
- | BassDrum1
- | SideStick
- | SnareDrum1
- | HandClap
- | SnareDrum2
- | LowTom2
- | ClosedHihat
- | LowTom1
- | PedalHihat
- | MidTom2
- | OpenHihat
- | MidTom1
- | HighTom2
- | CrashCymbal1
- | HighTom1
- | RideCymbal1
- | ChineseCymbal
- | RideBell
- | Tambourine
- | SplashCymbal
- | Cowbell
- | CrashCymbal2
- | VibraSlap
- | RideCymbal2
- | HighBongo
- | LowBongo
- | MuteHighConga
- | OpenHighConga
- | LowConga
- | HighTimbale
- | LowTimbale
- | HighAgogo
- | LowAgogo
- | Cabasa
- | Maracas
- | ShortWhistle
- | LongWhistle
- | ShortGuiro
- | LongGuiro
- | Claves
- | HighWoodBlock
- | LowWoodBlock
- | MuteCuica
- | OpenCuica
- | MuteTriangle
- | OpenTriangle
- drum :: PercussionSound -> Dur -> Music Dur PercussionSound
- dottedDrum :: Int -> PercussionSound -> Dur -> Music Dur PercussionSound
- oneDotDrum :: PercussionSound -> Dur -> Music Dur PercussionSound
- ed :: PercussionSound -> Music Dur PercussionSound
- qd :: PercussionSound -> Music Dur PercussionSound
- hd :: PercussionSound -> Music Dur PercussionSound
- wd :: PercussionSound -> Music Dur PercussionSound
- edd :: PercussionSound -> Music Dur PercussionSound
- qdd :: PercussionSound -> Music Dur PercussionSound
- hdd :: PercussionSound -> Music Dur PercussionSound
- wdd :: PercussionSound -> Music Dur PercussionSound
- toMIDINum :: PercussionSound -> Int
- hc :: Music Dur PercussionSound
- ho :: Music Dur PercussionSound
- hco :: Music Dur PercussionSound
- bd :: Music Dur PercussionSound
- bd2 :: Music Dur PercussionSound
- sn :: Music Dur PercussionSound
- sn2 :: Music Dur PercussionSound
- stick :: Music Dur PercussionSound
- t1 :: Music Dur PercussionSound
- t2 :: Music Dur PercussionSound
- t3 :: Music Dur PercussionSound
- t4 :: Music Dur PercussionSound
- t5 :: Music Dur PercussionSound
- t6 :: Music Dur PercussionSound
- cc :: Music Dur PercussionSound
- cc2 :: Music Dur PercussionSound
- rc :: Music Dur PercussionSound
- rc2 :: Music Dur PercussionSound
- china :: Music Dur PercussionSound
- splash :: Music Dur PercussionSound
- bell :: Music Dur PercussionSound
- clap :: Music Dur PercussionSound
- drumToMidiEvent :: Primitive Dur PercussionSound -> MidiEvent
- bassDrum2 :: Music Dur PercussionSound
- bassDrum1 :: Music Dur PercussionSound
- sideStick :: Music Dur PercussionSound
- snareDrum1 :: Music Dur PercussionSound
- handClap :: Music Dur PercussionSound
- snareDrum2 :: Music Dur PercussionSound
- lowTom2 :: Music Dur PercussionSound
- closedHihat :: Music Dur PercussionSound
- lowTom1 :: Music Dur PercussionSound
- pedalHihat :: Music Dur PercussionSound
- midTom2 :: Music Dur PercussionSound
- openHihat :: Music Dur PercussionSound
- midTom1 :: Music Dur PercussionSound
- highTom2 :: Music Dur PercussionSound
- crashCymbal1 :: Music Dur PercussionSound
- highTom1 :: Music Dur PercussionSound
- rideCymbal1 :: Music Dur PercussionSound
- chineseCymbal :: Music Dur PercussionSound
- rideBell :: Music Dur PercussionSound
- tambourine :: Music Dur PercussionSound
- splashCymbal :: Music Dur PercussionSound
- cowbell :: Music Dur PercussionSound
- crashCymbal2 :: Music Dur PercussionSound
- vibraSlap :: Music Dur PercussionSound
- rideCymbal2 :: Music Dur PercussionSound
- highBongo :: Music Dur PercussionSound
- lowBongo :: Music Dur PercussionSound
- muteHighConga :: Music Dur PercussionSound
- openHighConga :: Music Dur PercussionSound
- lowConga :: Music Dur PercussionSound
- highTimbale :: Music Dur PercussionSound
- lowTimbale :: Music Dur PercussionSound
- highAgogo :: Music Dur PercussionSound
- lowAgogo :: Music Dur PercussionSound
- cabasa :: Music Dur PercussionSound
- maracas :: Music Dur PercussionSound
- shortWhistle :: Music Dur PercussionSound
- longWhistle :: Music Dur PercussionSound
- shortGuiro :: Music Dur PercussionSound
- longGuiro :: Music Dur PercussionSound
- claves :: Music Dur PercussionSound
- highWoodBlock :: Music Dur PercussionSound
- lowWoodBlock :: Music Dur PercussionSound
- muteCuica :: Music Dur PercussionSound
- openCuica :: Music Dur PercussionSound
- muteTriangle :: Music Dur PercussionSound
- openTriangle :: Music Dur PercussionSound
Documentation
data PercussionSound Source
An Enum representing the different types of things you can bang on.
drum :: PercussionSound -> Dur -> Music Dur PercussionSound Source
Convenience constructor for drum sounds
dottedDrum :: Int -> PercussionSound -> Dur -> Music Dur PercussionSound Source
oneDotDrum :: PercussionSound -> Dur -> Music Dur PercussionSound Source
qd :: PercussionSound -> Music Dur PercussionSound Source
Simple constructor for a quarter-note drum hit.
edd :: PercussionSound -> Music Dur PercussionSound Source
Eighth Dotted Drum
qdd :: PercussionSound -> Music Dur PercussionSound Source
Quarter Dotted Drum
hdd :: PercussionSound -> Music Dur PercussionSound Source
Half Dotted Drum
wdd :: PercussionSound -> Music Dur PercussionSound Source
Whole Dotted Drum
toMIDINum :: PercussionSound -> Int Source
Get the MIDI offset number for a PercussionSound
hc :: Music Dur PercussionSound Source
Closed Hi Hat
ho :: Music Dur PercussionSound Source
Open Hi Hat
hco :: Music Dur PercussionSound Source
Pedal Hi Hat
bd :: Music Dur PercussionSound Source
Bass Drum
bd2 :: Music Dur PercussionSound Source
Bass Drum (alt)
sn :: Music Dur PercussionSound Source
Snare
sn2 :: Music Dur PercussionSound Source
Snare (alt)
stick :: Music Dur PercussionSound Source
Snare Sidestick
t1 :: Music Dur PercussionSound Source
High Tom
t2 :: Music Dur PercussionSound Source
High Tom (alt)
t3 :: Music Dur PercussionSound Source
Mid Tom
t4 :: Music Dur PercussionSound Source
Mid Tom (alt)
t5 :: Music Dur PercussionSound Source
Low Tom
t6 :: Music Dur PercussionSound Source
Low Tom (alt)
cc :: Music Dur PercussionSound Source
Crash Cymbal
cc2 :: Music Dur PercussionSound Source
Crash Cymbal (alt)
rc :: Music Dur PercussionSound Source
Ride Cymbal
rc2 :: Music Dur PercussionSound Source
Ride Cymbal (alt)
china :: Music Dur PercussionSound Source
China Cymbal
splash :: Music Dur PercussionSound Source
Splash Cymbal
bell :: Music Dur PercussionSound Source
Bell
clap :: Music Dur PercussionSound Source
Hand Clap
drumToMidiEvent :: Primitive Dur PercussionSound -> MidiEvent Source
Convert a primitive PercussionSound
to a MidiEvent