Module

Data.Midi

Package
purescript-midi
Repository
newlandsvalley/purescript-midi

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

#Track Source

data Track

A Midi Track.

Constructors

Instances

#Header Source

data Header

The Midi Header.

Constructors

Instances

#TimedEvent Source

newtype TimedEvent

a timestamped parsed MIDI Event message for use with Web MIDI

Constructors

Instances

#Message Source

data Message

A MIDI Message.

Constructors

Instances

#Recording Source

data Recording

A Midi Recording.

Constructors

Instances

#Ticks Source

type Ticks = Int

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

#Byte Source

type Byte = Int

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

#Channel Source

type Channel = Int

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

#Note Source

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 Source

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 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.

Constructors

Instances