User Manual

requestAllPolyPressure( function )
Request that the given function be called in response to any MIDI poly pressure (poly-
phonic aftertouch) event. E.g.
local function handlePolyPressure( channel, key, value )
!-- do stuff
end
requestAllPolyPressure( handlePolyPressure )
requestNoteOn( note, function )
Request that the given function be called in response to a MIDI note on event matching the
given note number. E.g.
local function handleNoteOn( channel, noteNumber, velocity )
!-- do stuff
end
requestNoteOn( 60, handleNoteOn )
requestNoteOff( note, function )
Request that the given function be called in response to a MIDI note off event matching
the given note number. E.g.
local function handleNoteOff( channel, noteNumber, velocity )
!-- do stuff
end
requestNoteOff( 60, handleNoteOff )
requestCC( cc, function )
Request that the given function be called in response to the given MIDI continuous con-
troller (CC) event. E.g.
local function handleCC( channel, cc, value )
!-- do stuff
end
requestCC( 20, handleCC )
requestNRPN( nrpn, function )
Request that the given function be called in response to the given MIDI non-registered pa-
rameter number (NRPN) event. E.g.
local function handleNRPN( channel, nrpn, value )
!-- do stuff
end
requestNRPN( 1000, handleNRPN )
requestProgramChange( pc, function )
Request that the given function be called in response to the given MIDI program change
event. E.g.