| Safe Haskell | Safe-Inferred |
|---|
Perform.Midi.Play
Description
This module is responsible for actually scheduling MIDI messages with the OS's MIDI driver.
Synopsis
- data State = State {}
- play :: State -> Maybe.Maybe Cmd.SyncConfig -> Text -> Messages -> Maybe.Maybe RealTime.RealTime -> IO ()
- cycle_messages :: RealTime.RealTime -> Messages -> Messages
Documentation
Access to info that's needed by a particular run of the player. This is read-only, and shouldn't need to be modified.
Constructors
| State | |
Fields
| |
Arguments
| :: State | |
| -> Maybe.Maybe Cmd.SyncConfig | |
| -> Text | |
| -> Messages | |
| -> Maybe.Maybe RealTime.RealTime | If given, loop back to the beginning when this time is reached. |
| -> IO () |
Start a thread to stream a list of WriteMessages.
cycle_messages :: RealTime.RealTime -> Messages -> Messages Source #