Module
Data.Midi
- Package
- purescript-midi
- Repository
- newlandsvalley/purescript-midi
Data structures used by the MIDI parser and by Web MIDI.
#Event Source
data Event
A Midi Event.
Note that RunningStatus messages are not included within Event because the parser translates them to the underlying channel messages
Constructors
SequenceNumber Int
Text String
Copyright String
TrackName String
InstrumentName String
Lyrics String
Marker String
CuePoint String
ChannelPrefix Int
Tempo Int
SMPTEOffset Int Int Int Int Int
TimeSignature Int Int Int Int
KeySignature Int Int
SequencerSpecific (List Byte)
SysEx SysExFlavour (NonEmptyList Byte)
Unspecified Int (List Byte)
NoteOn Channel Note Velocity
NoteOff Channel Note Velocity
NoteAfterTouch Channel Note Velocity
ControlChange Channel Int Int
ProgramChange Channel Int
ChannelAfterTouch Channel Velocity
PitchBend Channel Int
Instances
#TimedEvent Source
newtype TimedEvent
a timestamped parsed MIDI Event message for use with Web MIDI
Constructors
TimedEvent { event :: Maybe Event, timeStamp :: Number }
Instances
#SysExFlavour Source
data SysExFlavour
System exclusive messages exist in two different flavours as introduced by a lead-in byte of 0xF0 or 0xF7. See the MIDI specification page 135.