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

connect(regex connection) connect to one ore more system ports
connect(string connection) connect to a system port
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 connect(regex connection)

Connect to one ore more system ports.

Parameters


void connect(string connection)

Connect to a system port.

Parameters


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.