Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Perform.Midi.Play

Description

This module is responsible for actually scheduling MIDI messages with the OS's MIDI driver.

Synopsis

Documentation

data State Source #

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

play Source #

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 #