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

Midi.TestMidi

Description

Test MIDI bindings, automatically and manually.

Synopsis

Documentation

program change

sysex

monitor

thru

melody

thru_melody :: Interface -> WriteMsg -> ReadMsg -> IO.IO () Source #

Play a melody while also allowing msgs thru, to test merging.

mmc

spam

pitch bend range

tests

run_tests :: Interface -> WriteMsg -> ReadMsg -> IO.IO () Source #

Test a few things by writing and reading both ends of the same port.

test_abort :: Interface -> WriteMsg -> ReadMsg -> IO.IO () Source #

Ensure that aborts really cancel pending msgs.

test_merge :: Interface -> WriteMsg -> ReadMsg -> IO.IO () Source #

Ensure that timestamp 0 msgs get merged in ahead of timed msgs, as per Interface.write_message.

util