Requestallcc( function ), Requestallnrpn( function ), Requestallprogramchange( function ) – Expert Sleepers MIDI & OSC Scripting v1.1.0 User Manual

Page 9: Requestallpolypressure( function ), Requestnoteon( note, function ), Requestnoteoff( note, function )

Advertising
background image

requestAllCC( function )

Request that the given function be called in response to any MIDI continuous controller
(CC) event. E.g.

local function handleCC( channel, cc, value )

-- do stuff

end
requestAllCC( handleCC )

requestAllNRPN( function )

Request that the given function be called in response to any MIDI non-registered parame-
ter number (NRPN) event. E.g.

local function handleNRPN( channel, nrpn, value )

-- do stuff

end
requestAllNRPN( handleNRPN )

requestAllProgramChange( function )

Request that the given function be called in response to any MIDI program change event.
E.g.

local function handlePC( channel, value )

-- do stuff

end
requestAllProgramChange( handlePC )

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.

Advertising