Safe Haskell | None |
---|---|
Language | Haskell98 |
Convenience functions to access Sound.PortMidi devices.
- displayOutputDevices :: IO String
- displayDevices :: Show a => [(a, DeviceInfo)] -> String
- getOutputDevices :: [(a, DeviceInfo)] -> [(a, DeviceInfo)]
- getIndexedDevices :: IO [(Integer, DeviceInfo)]
- getDevices :: IO [DeviceInfo]
- getIDForDeviceName :: Num a => String -> IO (Maybe a)
Documentation
displayOutputDevices :: IO String Source #
Example usage:
>>>
putStrLn =<< displayOutputDevices
ID: Name 0: Midi Through Port-0 2: DSI Tetra MIDI 1
displayDevices :: Show a => [(a, DeviceInfo)] -> String Source #
Readable version of a list of indexed MIDI devices
getOutputDevices :: [(a, DeviceInfo)] -> [(a, DeviceInfo)] Source #
getIndexedDevices :: IO [(Integer, DeviceInfo)] Source #
getDevices :: IO [DeviceInfo] Source #