Continuous controller events are determined by their controller number. Controller numbers from 0 to 127 follow the MIDI specification. Controller numbers above 127 are additional controllers that are specific to HALion.
To limit a function to the continuous controllers of the MIDI specification, use an if statement. See example below.
Available in: Processor.
Controllers like aftertouch, pitch bend and other special controllers are determined by controller numbers above 127.
|138||reserved for polyhonic Velocity|
|139||reserved for polyhonic Note Expression Custom 1|
|140||reserved for polyhonic Note Expression Custom 2|
|141||reserved for polyhonic Note Expression Custom 3|
|142||reserved for polyhonic Note Expression Custom 4|
|143||reserved for polyhonic Note Expression Custom 5|
|144||reserved for polyhonic Note Expression Custom 6|
|145||reserved for polyhonic Note Expression Custom 7|
|146||reserved for polyhonic Note Expression Custom 8|
|147||RPN Pitch Bend Range|
|148||RPN Channel Fine Tuning (value range -8191 to 8191 equals -100 to 100 cent)|
|149||RPN Channel Coarse Tuning (value range -64 to 63 equals -64 to 63 semitones)|
|150||RPN Tuning Program Change|
|151||RPN Tuning Bank Select|
|152||RPN Modulation Depth Range|
onController will not be called by controllers 138 to 146. They are reserved for the polyphonic sources note-on velocity and note expression custom 1-8. You can use the callback functions onNote and onNoteExpression instead.
-- exclude MIDI mode messages and other special controllers function onController(event) if event.controller < 120 then print("Controller #: "..event.controller..", Value: "..event.value) postEvent(event) end end