midi-alsa-0.2.1: Convert between datatypes of the midi and the alsa packages

Safe HaskellNone

Sound.MIDI.ALSA.Construct

Synopsis

Documentation

class C event where

Methods

note :: Channel -> (Velocity, Pitch, Bool) -> event

Warning: This constructs a note events as is, that is, a NoteOff p 64 is encoded as such and will not be converted to NoteOn p 0. If you want such a conversion, you may use noteImplicitOff.

program :: Channel -> Program -> event

anyController :: Channel -> (Controller, Int) -> event

pitchBend :: Channel -> Int -> event

channelPressure :: Channel -> Int -> event

mode :: Channel -> T -> event

Instances

C T 
C Data 
C T 
C T 

note :: C event => Channel -> (Velocity, Pitch, Bool) -> event

Warning: This constructs a note events as is, that is, a NoteOff p 64 is encoded as such and will not be converted to NoteOn p 0. If you want such a conversion, you may use noteImplicitOff.

noteExplicitOff :: C event => Channel -> (Velocity, Pitch, Bool) -> event

Like note, but converts NoteOn p 0 to NoteOff p 64. See explicitNoteOff.

noteImplicitOff :: C event => Channel -> (Velocity, Pitch, Bool) -> event

Like note, but converts NoteOff p 64 to NoteOn p 0. See implicitNoteOff.

program :: C event => Channel -> Program -> event

anyController :: C event => Channel -> (Controller, Int) -> event

mode :: C event => Channel -> T -> event

pitchBend :: C event => Channel -> Int -> event

channelPressure :: C event => Channel -> Int -> event