Module

Data.Midi.Generate

Package
purescript-midi
Repository
newlandsvalley/purescript-midi

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

#Context Source

data Context

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

Constructors

#event Source

event :: Context -> Event -> List Byte

Generate a MIDI event.

#recording Source

recording :: Recording -> List Byte

Generate a MIDI recording

#midiMessage Source

midiMessage :: Message -> List Byte

generate a MIDI message