Module

Data.Midi.Generate

Encode MIDI types as "binary" adapted from the elm-comidi version courtesy of @rhofour.

#Context

data Context

The MIDI generation context. This differs according to whether we're generating a file or an Event stream.

Constructors

#event

event :: Context -> Event -> List Byte

Generate a MIDI event.

#recording

recording :: Recording -> List Byte

Generate a MIDI recording

#midiMessage

midiMessage :: Message -> List Byte

generate a MIDI message

Modules