Module

Data.Midi.Instrument

Package
purescript-midi
Repository
newlandsvalley/purescript-midi

An enumeration of the virtual instruments defined by MIDI together with a mapping to the instrument names defined in Benjamin Gleitzman's soundfont library - https://github.com/gleitz/midi-js-soundfonts. See the MIDI specification, page 150 - the General MIDI Sound Set.

#InstrumentName Source

#instrumentNames Source

instrumentNames :: List InstrumentName

the set of supported instruments

#gleitzmanName Source

gleitzmanName :: InstrumentName -> String

Convert a MIDI instrument name to a Gleitzman name for example ElectricPiano1 -> electric_piano_1

#gleitzmanNames Source

gleitzmanNames :: List String

the set of supported instruments, using the Gleitzman names

#read Source

read :: String -> Maybe InstrumentName

read a Gleitzman instrument name amd attempt to convert to a MIDI instrument.