Q-Code User Manual
Ver. 7.0 2021/11/30
201
4.13 Keyboard Command
Instrument Command
-
-
4.13.1 InstNoteOn(Index, Note, Vol) & InstNoteOff(Note)
The InstNoteOn and InstNoteOff commands can be used as single note of instruments’ key, but these
commands must be paired. When user presses one key, the InstNoteOn command will play one note
and occupy one channel until user releases the key or the end of play. When the key is released, the
InstNoteOff command will stop play and release the occupied channel.
Index:
Specify the index of GM Pitched Instrument. User can designate the value via an immediate
value or variables.
Note:
{“C1”, “C#1”, “D1”, “D#1”,”E1”, “F1”, “F#1”, “G1”, “G#1”, “A2”, “A#2”, “B2”…. “B8”}
Vol:
The velocity of single tone, its range is 0 ~ 127. User can designate the value via an immediate
value or variables.
Note: NY4 / NY5 / NY9T do not support this comman.
Ex.
Path1: InstNoteOn (0, C1, 127)
;
Falling Edge. Play timbre number 0, pitch C1, intensity 127.
Path2: InstNoteOff (C1)
;
Rising Edge. Release pitch C1.
Ex.
Path1: InstNoteOn (X0, C3, 127)
; Falling Edge. Use the X0 designated timbre, pitch C3,
intensity 127
Path2: InstNoteOff (C3)
; Rising Edge. Release pitch C3.
Ex.
Path1: InstNoteOn (0, C4, X1)
; Falling Edge. Play timbre number 0, pitch C4, using the
velocity specified by X1.
Path2: InstNoteOff (C4)
; Rising Edge. Release pitch C4.
Ex.
Path1: InstNoteOn (X0, C4, X1)
; Falling Edge. Use the X0 designated timbre, pitchC4 and the
intensity specified by X1.
Path2: InstNoteOff (C4)
; Rising Edge.Release pitch C4.
4.13.2 InstNoteAllOff
The InstNoteAllOff command can be applied to keyboard functions of instrument and percussion. It will