-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | A binding for PortMedia/PortMidi
--   
--   A Haskell binding for PortMedia/PortMidi
@package PortMidi
@version 0.1.6.1


-- | Interface to PortMidi
module Sound.PortMidi
data PMError
NoError :: PMError
GotData :: PMError
HostError :: PMError
InvalidDeviceId :: PMError
InsufficientMemory :: PMError
BufferTooSmall :: PMError
BufferOverflow :: PMError
BadPtr :: PMError
BadData :: PMError
InternalError :: PMError
BufferMaxSize :: PMError
type PMStream = ForeignPtr PortMidiStream
data DeviceInfo
DeviceInfo :: String -> String -> Bool -> Bool -> Bool -> DeviceInfo
[interface] :: DeviceInfo -> String
[name] :: DeviceInfo -> String
[input] :: DeviceInfo -> Bool
[output] :: DeviceInfo -> Bool
[opened] :: DeviceInfo -> Bool
type DeviceID = Int
data PMMsg
PMMsg :: !CLong -> !CLong -> !CLong -> PMMsg
[status] :: PMMsg -> !CLong
[data1] :: PMMsg -> !CLong
[data2] :: PMMsg -> !CLong
data PMEvent
PMEvent :: !CLong -> !Timestamp -> PMEvent
[message] :: PMEvent -> !CLong
[timestamp] :: PMEvent -> !Timestamp
filterActive :: CLong
filterSysex :: CLong
filterClock :: CLong
filterPlay :: CLong
filterTick :: CLong
filterFD :: CLong
filterUndefined :: CLong
filterReset :: CLong
filterRealtime :: CLong
filterNote :: CLong
filterChannelAftertouch :: CLong
filterPolyAftertouch :: CLong
filterAftertouch :: CLong
filterProgram :: CLong
filterControl :: CLong
filterPitchBend :: CLong
filterMTC :: CLong
filterSongPosition :: CLong
filterSongSelect :: CLong
filterTune :: CLong
filterSystemCommon :: CLong
initialize :: IO PMError
terminate :: IO PMError
hasHostError :: PMStream -> IO Bool
getErrorText :: PMError -> IO String
countDevices :: IO DeviceID
getDefaultInputDeviceID :: IO (Maybe DeviceID)
getDefaultOutputDeviceID :: IO (Maybe DeviceID)
getDeviceInfo :: DeviceID -> IO DeviceInfo
openInput :: DeviceID -> IO (Either PMStream PMError)
openOutput :: DeviceID -> Int -> IO (Either PMStream PMError)
setFilter :: PMStream -> CLong -> IO PMError
channel :: Int -> CLong
setChannelMask :: PMStream -> CLong -> IO PMError
abort :: PMStream -> IO PMError
close :: PMStream -> IO PMError
readEvents :: PMStream -> IO (Either [PMEvent] PMError)
writeEvents :: PMStream -> [PMEvent] -> IO PMError
writeShort :: PMStream -> PMEvent -> IO PMError
writeSysEx :: PMStream -> Timestamp -> String -> IO PMError
time :: IO Timestamp
encodeMsg :: PMMsg -> CLong
decodeMsg :: CLong -> PMMsg
instance GHC.Show.Show Sound.PortMidi.PMEvent
instance GHC.Classes.Eq Sound.PortMidi.PMEvent
instance GHC.Show.Show Sound.PortMidi.PMMsg
instance GHC.Classes.Eq Sound.PortMidi.PMMsg
instance GHC.Show.Show Sound.PortMidi.PMError
instance GHC.Classes.Eq Sound.PortMidi.PMError
instance Foreign.Storable.Storable Sound.PortMidi.PMEvent
instance GHC.Enum.Enum Sound.PortMidi.PMError
