BB.MidiDevice
A class for recieving input from Midi controllers in the browser using the experimental Web MIDI API. This constructor returns true if browser supports Midi and false if not.
NOTE: This implementation of
BB.MidiDevice currently only supports using one MIDI device connected to
the browser at a time. More than one may work but you may run into note
clashing and other oddities.
Constructor
BB.MidiDevice
(
-
midiMap
-
success
-
failure
)
-
midiMap
-
success
-
failure
Parameters:
-
midiMap
ObjectAn object with array properties for knobs, sliders, buttons, keys, and pads.
-
success
FunctionFunction to return once MIDIAccess has been received successfully.
-
failure
FunctionFunction to return if MIDIAccess is not received successfully.