Module
FRP.Event.MIDI
- Package
- purescript-ocarina
- Repository
- mikesol/purescript-ocarina
#MIDIAccess Source
data MIDIAccess
The Web API's MIDIAccess.
#MIDIEventInTime Source
type MIDIEventInTime = { event :: MIDIEvent, timeStamp :: Number }
Represents a MIDI event with a timestamp.
#MIDIDevice Source
type MIDIDevice = { manufacturer :: String, name :: String, portID :: String }
Represents a MIDI device.
#midi Source
midi :: MIDIAccess -> Event MIDIEventInTime
After having acquired the MIDIAccess from the browser, use it to create a streamed event of type Event MIDIEventInTime
.
#midiAccess Source
midiAccess :: Effect (Promise MIDIAccess)
Get the MIDIAccess from the browser.
#midiInputDevices Source
midiInputDevices :: MIDIAccess -> Effect (List MIDIDevice)
#midiOutputDevices Source
midiOutputDevices :: MIDIAccess -> Effect (List MIDIDevice)