midi-0.2.2.6: Handling of MIDI messages and files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.MIDI.File.Event

Description

MIDI messages in MIDI files. They are not a superset of the messages, that are used for real-time communication between MIDI devices. For these refer to Sound.MIDI.Message. Namely System Common and System Real Time messages are missing. If you need both real-time and file messages (say for ALSA sequencer), you need a custom datatype.

Synopsis

Documentation

data T Source #

Instances

Instances details
Arbitrary T Source # 
Instance details

Defined in Sound.MIDI.File.Event

Methods

arbitrary :: Gen T

shrink :: T -> [T]

Show T Source # 
Instance details

Defined in Sound.MIDI.File.Event

Methods

showsPrec :: Int -> T -> ShowS

show :: T -> String

showList :: [T] -> ShowS

Eq T Source # 
Instance details

Defined in Sound.MIDI.File.Event

Methods

(==) :: T -> T -> Bool

(/=) :: T -> T -> Bool

Ord T Source # 
Instance details

Defined in Sound.MIDI.File.Event

Methods

compare :: T -> T -> Ordering

(<) :: T -> T -> Bool

(<=) :: T -> T -> Bool

(>) :: T -> T -> Bool

(>=) :: T -> T -> Bool

max :: T -> T -> T

min :: T -> T -> T

C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Check

Methods

note :: Channel -> T -> Maybe (Velocity, Pitch, Bool) Source #

program :: Channel -> T -> Maybe Program Source #

anyController :: Channel -> T -> Maybe (Controller, Int) Source #

pitchBend :: Channel -> T -> Maybe Int Source #

channelPressure :: Channel -> T -> Maybe Int Source #

mode :: Channel -> T -> Maybe T0 Source #

C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Construct

C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Query

Methods

note :: T -> Maybe (Channel, (Velocity, Pitch, Bool)) Source #

program :: T -> Maybe (Channel, Program) Source #

anyController :: T -> Maybe (Channel, (Controller, Int)) Source #

pitchBend :: T -> Maybe (Channel, Int) Source #

channelPressure :: T -> Maybe (Channel, Int) Source #

mode :: T -> Maybe (Channel, T0) Source #

get :: C parser => Fragile (T parser) T Source #

put :: (Compression compress, C writer) => T -> T compress writer Source #

The following functions encode various T elements into the raw data of a standard MIDI file.

getTrackEvent :: C parser => Fragile (T parser) TrackEvent Source #

Each event is preceded by the delta time: the time in ticks between the last event and the current event. Parse a time and an event, ignoring System Exclusive messages.

type ElapsedTime = Integer Source #

maybeMIDIEvent :: T -> Maybe T Source #

maybeMetaEvent :: T -> Maybe T Source #

maybeVoice :: T -> Maybe (Channel, T) Source #

mapVoice :: (T -> T) -> T -> T Source #