Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helper functions to make it easy to start messing around
Synopsis
- selectMidiDevice :: MIDIHasName a => String -> Maybe String -> [a] -> IO a
- selectInputDevice :: String -> Maybe String -> IO Source
- selectOutputDevice :: String -> Maybe String -> IO Destination
Documentation
:: 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 Source Source #
Select a MIDI input device (source)
selectOutputDevice :: String -> Maybe String -> IO Destination Source #
Select a MIDI output device (destination)