Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
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 #