Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

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.