Requestcc( cc, function ), Requestnrpn( nrpn, function ), Requestprogramchange( pc, function ) – Expert Sleepers Oomingmak v1.0.0 User Manual

Page 32: Requestpolypressure( key, function ), Requestpitchwheel( function )

Advertising
background image

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.

local function handlePC( channel, value )

-- do stuff

end
requestProgramChange( 2, handlePC )

requestPolyPressure( key, function )

Request that the given function be called in response to a MIDI poly pressure (polyphonic
aftertouch) event on the given key. E.g.

local function handlePolyPressure( channel, key, value )

-- do stuff

end
requestPolyPressure( 60, handlePolyPressure )

requestPitchWheel( function )

Request that the given function be called in response to a MIDI pitch wheel event. NB the
value passed to the handler function is the raw 14 bit MIDI value, not e.g. a normalised
±1.0 value. E.g.

local function handlePitchWheel( channel, value )

-- do stuff

end
requestPitchWheel( handlePitchWheel )

Advertising