Q-Code User Manual
Ver. 7.0 2021/11/30
99
3.9.17 Note On
When playing Melody files, users do not need to insert code for each MIDI channel with
Q-Melody
/
Q-MIDI
to save ROM Size.
[
Note On
]
section can be used to directly execute corresponding steps
after reading Notes in each MIDI channel. User can define the setting of corresponding states up to
maximum 255.
Note:
1. NY4 / NY9T does not support the Note On section.
2. To switch Note On states is similar to Input State.
3. NY5 / NY5+: Ch0 ~ 3, NY6: Ch1 ~ 6, NY7 / NX1: Ch1 ~ 16.
4. Direct execution of play instruction in [Note On] section might interrupt current playback.
5. There will be no action for the rest note.
Ex.
[Note On]
;
CH1
CH2
CH3
CH4
NoteOn1: BG1
X
X
X
NoteOn2: X
BG2
X
X
[Path]
TR1: PlayM($M0)
; Play melody.
TR2: SWITCH(R0)=[NO1, NO2], R0=0, TR2
; Choose Note On state according to
the value of R0.
NO1: NoteOn1, R0=1
; Set Note On state to NoteOn1.
NO2: NoteOn2, R0=0
; Set Note On state to NoteOn2.
[Background1]
BG1:PB=[ X X X 1], DELAY(0.08), PB=[ X X X 0]
[Background2]
BG2:PB=[ X X 1 X], DELAY(0.08), PB=[ X X 0 X]
3.9.18 IR Receive (Infrared Receive)
First, select required IR Mode (IR transmission or reception features, code length and carrier
frequency) in the Option section, and then compose “IR Receive” command in
[IR Receive]
section.
Please check the following operation for the configuration of “IR Receive”:
The following dialog box will appear after clicking “IR Receive”: