Bang-0.1.0.6: A Drum Machine DSL for Haskell

Copyright(c) Benjamin Kovach, 2014
LicenseMIT
Maintainerbkovach13@gmail.com
Stabilityexperimental
PortabilityMac OSX
Safe HaskellNone
LanguageHaskell2010

Bang.Interface.Drum

Description

This module exports a number of functions that build primitive drum beats from various PercussionSounds. 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.

Synopsis

Documentation

drum :: PercussionSound -> Dur -> Music Dur PercussionSound Source

Convenience constructor for drum sounds

qd :: PercussionSound -> Music Dur PercussionSound Source

Simple constructor for a quarter-note drum hit.

toMIDINum :: PercussionSound -> Int Source

Get the MIDI offset number for a PercussionSound

bd2 :: Music Dur PercussionSound Source

Bass Drum (alt)

t2 :: Music Dur PercussionSound Source

High Tom (alt)

cc2 :: Music Dur PercussionSound Source

Crash Cymbal (alt)

rc2 :: Music Dur PercussionSound Source

Ride Cymbal (alt)

drumToMidiEvent :: Primitive Dur PercussionSound -> MidiEvent Source

Convert a primitive PercussionSound to a MidiEvent