midi-0.2.1.3: Handling of MIDI messages and files

Safe HaskellSafe-Inferred

Sound.MIDI.Message.Class.Construct

Synopsis

Documentation

class C event whereSource

Methods

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

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 -> eventSource

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

pitchBend :: Channel -> Int -> eventSource

channelPressure :: Channel -> Int -> eventSource

mode :: Channel -> T -> eventSource

Instances

C T 
C T 

liftChannel :: (a -> Body) -> Channel -> a -> TSource

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

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

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

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

liftMidi :: (Channel -> a -> T) -> Channel -> a -> TSource