Module

Data.Midi

Data structures used by the MIDI parser and by Web MIDI.

#Track

newtype Track

A Midi Track.

Constructors

Instances

#Header

newtype Header

The Midi Header.

Constructors

Instances

#TimedEvent

newtype TimedEvent

a timestamped parsed MIDI Event message for use with Web MIDI

Constructors

Instances

#Message

data Message

A MIDI Message.

Constructors

Instances

#Recording

newtype Recording

A Midi Recording.

Constructors

Instances

#Ticks

type Ticks = Int

A Tick represents a MIDI time increment. See the MIDI Specification, page 135 - delta-time.

#Byte

type Byte = Int

A MIDI byte (for use in a Byte array) and represented as an Int.

#Channel

type Channel = Int

A MIDI Channel in the range ( 0 <= channel <= 15). See the MIDI specification - page 7.

#Note

type Note = Int

A MIDI note number representing a pitch in the range (0 <= note <= 127). See the MIDI specification page 42 - Note Number. 0 in a NoteOn message is equivalent to NoteOff.

#Velocity

type Velocity = Int

An indication of the pressure applied to a key on a MIDI isntrument and hence of note volume. See the MIDI specification page 42 - Volume.

#SysExFlavour

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.

Constructors

Instances

Modules