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)
pub type MidiInput

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
pub type MidiPort

Functions

pub fn request_midi() -> Promise(MidiAccess)
pub fn to_data(raw: BitArray) -> MidiData
Search Document