Euterpea-1.0.0: Library for computer music research and education

Safe HaskellNone

Euterpea.IO.MIDI

Documentation

defaultOutput :: (OutputDeviceID -> a -> IO b) -> a -> IO bSource

defaultInput :: (InputDeviceID -> a -> IO b) -> a -> IO bSource

playMidi :: OutputDeviceID -> Midi -> IO ()Source

data MidiMessage Source

Constructors

ANote !Channel !Key !Velocity !Time 
Std Message 

Instances

Show MidiMessage 
NFData MidiMessage 

data Message

Constructors

NoteOff 

Fields

channel :: !Channel
 
key :: !Key
 
velocity :: !Velocity
 
NoteOn 

Fields

channel :: !Channel
 
key :: !Key
 
velocity :: !Velocity
 
KeyPressure 

Fields

channel :: !Channel
 
key :: !Key
 
pressure :: !Pressure
 
ControlChange 

Fields

channel :: !Channel
 
controllerNumber :: !Int
 
controllerValue :: !Int
 
ProgramChange 

Fields

channel :: !Channel
 
preset :: !Preset
 
ChannelPressure 

Fields

channel :: !Channel
 
pressure :: !Pressure
 
PitchWheel 

Fields

channel :: !Channel
 
pitchWheel :: !PitchWheel
 
SequenceNumber !Int 
Text !String 
Copyright !String 
TrackName !String 
InstrumentName !String 
Lyrics !String 
Marker !String 
CuePoint !String 
ChannelPrefix !Channel 
ProgramName !String 
DeviceName !String 
TrackEnd 
TempoChange !Tempo 
SMPTEOffset !Int !Int !Int !Int !Int 
TimeSignature !Int !Int !Int !Int 
KeySignature !Int !Int 
Reserved !Int !ByteString 
Sysex !Int !ByteString 

Instances

Eq Message 
Show Message 
Arbitrary Message 
NFData Message 

data DeviceInfo

Constructors

DeviceInfo 

Fields

interface :: String
 
name :: String
 
input :: Bool
 
output :: Bool
 
opened :: Bool
 

Instances