Class Midi.Input

implements Midi.Source

A MIDI system input.

Constructors

Input(string name, string connection)
Input(string name, regex connection)

Properties

midiout Midi.Connection outputs as an array

Methods

onControl(function handler) register a callback for MIDI control messages.
onNoteOff(function handler) register a callback for MIDI note off messages.
onNoteOn(function handler) register a callback for MIDI note on messages.
onProgramChange(function handler) register a callback for MIDI program change messages.

Constructor Documentation


Input(string name, string connection)

Parameters


Input(string name, regex connection)

Parameters

Property Documentation


array midiout

Midi.Connection outputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.

Method Documentation


void onControl(function handler)

Register a callback for MIDI control messages.

Parameters


void onNoteOff(function handler)

Register a callback for MIDI note off messages.

Parameters


void onNoteOn(function handler)

Register a callback for MIDI note on messages.

Parameters


void onProgramChange(function handler)

Register a callback for MIDI program change messages.

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.