Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Perform.Midi.Play

Description

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

Synopsis

Documentation

play Source #

Arguments

:: Transport.Info 
-> Maybe.Maybe Cmd.SyncConfig 
-> Text 
-> Messages 
-> Maybe.Maybe RealTime.RealTime

If given, loop back to the beginning when this time is reached.

-> IO (Transport.PlayControl, Transport.PlayMonitorControl) 

Start a thread to stream a list of WriteMessages, and return a Transport.Control which can be used to stop and restart the player.