alsa-midi-0.3.1: Bindings for the ALSA sequencer API (MIDI stuff)

Sound.ALSA.Sequencer

Synopsis

Documentation

withMIDIEvents :: String -> String -> ([Event] -> IO a) -> IO aSource

Process MIDI events from ALSA in a lazy manner. The processing function must be strict, in order to let the cleanup take place after abandoning the process.

drainOutput :: Client -> IO ()Source

Strangly ALSA returns error code 2 (No such file or directory) if the destination port does not exist.

newtype Port Source

Constructors

Port CUInt