midi-0.2.2.2: Handling of MIDI messages and files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.MIDI.Message.Class.Construct

Synopsis

Documentation

class C event where Source #

Methods

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

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

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

pitchBend :: Channel -> Int -> event Source #

channelPressure :: Channel -> Int -> event Source #

mode :: Channel -> T -> event Source #

liftChannel :: (a -> Body) -> Channel -> a -> T Source #

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

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

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

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

liftMidi :: (Channel -> a -> T) -> Channel -> a -> T Source #

liftFile :: (Channel -> a -> T) -> Channel -> a -> T Source #