Safe Haskell | Safe-Inferred |
---|
MMC is a MIDI standard for synchronizing with recording devices and DAWs and whatever else chooses to support it. Ultimately MMC is just a bunch of specially formatted SystemExclusive msgs.
Synopsis
- data Mmc
- = Stop
- | Play
- | FastForward
- | Rewind
- | Pause
- | Goto !Midi.Smpte !SubFrames
- goto_seconds :: Midi.FrameRate -> Double -> Mmc
- type DeviceId = Word8
- type SubFrames = Word8
- encode :: DeviceId -> Mmc -> Midi.Message
- encode_msg :: Mmc -> B.ByteString
Documentation
There are more, but I only support the ones I use.
goto_seconds :: Midi.FrameRate -> Double -> Mmc Source #
type DeviceId = Word8 Source #
This is just an arbitrary number that evidentally selects which device should pay attention to the msg. 0x7f sometimes means all devices.
encode_msg :: Mmc -> B.ByteString Source #