hmidi-0.2.1.0: Binding to the OS level MIDI services

Safe HaskellNone

System.MIDI.Utility

Description

Helper functions to make it easy to start messing around

Synopsis

Documentation

selectMidiDeviceSource

Arguments

:: MIDIHasName a 
=> String

prompt

-> Maybe String

default device name

-> [a]

list of devices

-> IO a 

Utility function to help choosing a midi device. If there is only a single device, we select that. You can also set a default device (by its name), which will be automatically selected if present.

selectInputDevice :: String -> Maybe String -> IO SourceSource

Select a MIDI input device (source)

selectOutputDevice :: String -> Maybe String -> IO DestinationSource

Select a MIDI output device (destination)