Module
Data.Midi.WebMidi
- Package
- purescript-midi
- Repository
- newlandsvalley/purescript-midi
This module provides plug and play support for MIDI input devices such as MIDI keyboards.
#RawMidiEvent Source
type RawMidiEvent = { encodedBinary :: String, timeStamp :: Number }
A 'raw' Midi Event where the event has not been decoded.
#createDeviceChannel Source
createDeviceChannel :: Effect (Channel Device)
create a channel for MIDI device connections/disconnections and feed it from web-midi
#createEventChannel Source
createEventChannel :: Effect (Channel TimedEvent)
create a channel for MIDI timed event messages and feed it from web-midi
#webMidiConnect Source
webMidiConnect :: Effect Boolean
try to connect to Web-Midi.