Q-Code User Manual
Ver. 7.0 2021/11/30
97
1. NY6 / NY7 / NY9T does not support Wave Mark.
2. To switch Wave Mark state is similar to Input State.
3. The mark numbers must be M1 ~ M15.
Ex.
Use
Quick-IO
to insert M1 ~ M4 marks.
[Wave Mark]
;
M1
M2
M3
M4
WaveMark_0: WM1 WM2 WM3 WM4
[Path]
PowerOn:
WaveMark_0, PlayV($V0)
[Background1]
WM1: PB=0x1
; System will execute WM1 when wave mark is read
and the number is 1.
WM2: PB=0x2
; System will execute WM2 when wave mark is read
and the number is 2.
WM3: PB=0x3
; System will execute WM3 when wave mark is read
and the number is 3.
WM4: PB=0x0
; System will execute WM4 when wave mark is read
and the number is 4.
As shown in the following figure:
3.9.16 Melody Mark
User can insert Background control code to any Note to control the output pin state or execute other
operations while using
Cakewalk
to edit MIDI music files. During the playback of Melody file, the motor
rotation or LED flashing actions will be executed according to the corresponding mark in the melody
file.