| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Sound.MIDI.Message.Class.Construct
- class C event where
- liftChannel :: (a -> Body) -> Channel -> a -> T
- noteExplicitOff :: C event => Channel -> (Velocity, Pitch, Bool) -> event
- noteImplicitOff :: C event => Channel -> (Velocity, Pitch, Bool) -> event
- liftMidi :: (Channel -> a -> T) -> Channel -> a -> T
- liftFile :: (Channel -> a -> T) -> Channel -> a -> T
Documentation
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
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.