webmidi
Types
pub type ConnectionEvent
pub type MessageEvent
pub type MidiAccess
pub type MidiData {
NoteOff(channel: Int, pitch: Int, velocity: Int)
NoteOn(channel: Int, pitch: Int, velocity: Int)
PolyPressure(channel: Int, pitch: Int, pressure: Int)
BankSelect(channel: Int, value: Int)
Modulation(channel: Int, value: Int)
BreathController(channel: Int, value: Int)
Undefined1(channel: Int, value: Int)
FootController(channel: Int, value: Int)
PortamentoTime(channel: Int, value: Int)
ChannelVolume(channel: Int, value: Int)
Balance(channel: Int, value: Int)
Undefined2(channel: Int, value: Int)
Pan(channel: Int, value: Int)
ExpressionController(channel: Int, value: Int)
SongSelect(id: Int)
TuneRequest
EndOfSysEx
Timing
Start
Continue
Stop
ActiveSensing
SystemReset
Undefined(value: Int)
Err(value: BitArray)
}
Constructors
-
NoteOff(channel: Int, pitch: Int, velocity: Int)
-
NoteOn(channel: Int, pitch: Int, velocity: Int)
-
PolyPressure(channel: Int, pitch: Int, pressure: Int)
-
BankSelect(channel: Int, value: Int)
-
Modulation(channel: Int, value: Int)
-
BreathController(channel: Int, value: Int)
-
Undefined1(channel: Int, value: Int)
-
FootController(channel: Int, value: Int)
-
PortamentoTime(channel: Int, value: Int)
-
ChannelVolume(channel: Int, value: Int)
-
Balance(channel: Int, value: Int)
-
Undefined2(channel: Int, value: Int)
-
Pan(channel: Int, value: Int)
-
ExpressionController(channel: Int, value: Int)
-
SongSelect(id: Int)
-
TuneRequest
-
EndOfSysEx
-
Timing
-
Start
-
Continue
-
Stop
-
ActiveSensing
-
SystemReset
-
Undefined(value: Int)
-
Err(value: BitArray)
A MIDIInputMap instance is a read-only Map-like object, in which each key is the ID string for MIDI input, and the associated value is the corresponding MIDIInput object.
pub type MidiInputMap
pub type MidiOutput
A MIDIOutputMap instance is a read-only Map-like object, in which each key is the ID
pub type MidiOutputMap
Functions
pub fn request_midi() -> Promise(MidiAccess)