Q-Code User Manual
Ver. 7.0 2021/11/30
140
Ex.
TEST_ROUTINE: SPI_CheckSum?OK, PlayV(Ch1, $Fail)
; Jump to path “OK” if SPI
; checksum is correct. Otherwise
; execute the next command.
OK: PlayV(Ch1, $OK)
4.2.33 MixCtrl = data?Path
Jump to Path if MixCtrl value is equal to data.
Note: NY4 / NY5+ / NY6 / NY7 / NY9T / NX1 do not support this command.
Ex.
MixCtrl=0x2?Set_MixCtrl
; Jump to “Set_MixCtrl” if MixCtrl value is equal to 0x2.
Set_ MixCtrl: MixCtrl(0,0,4,0)
; Volume on channel 2 is 100%.
4.2.34 MixCtrl != data?Path
Jump to Path if MixCtrl value is not equal to data.
Note: NY4 / NY5+ / NY6 / NY7 / NY9T / NX1 do not support this command.
Ex.
MixCtrl!=0xE?Set_MixCtrl
; Jump to “Set_MixCtrl” if MixCtrl value is not equal to 0xE.
Set_MixCtrl: MixCtrl(1,1,2)
; 1/4 volume on Ch0/Ch1 respectively, and 2/4 volume on Ch2.
4.2.35 RandomL = data?Path
The random number is generated by random number generator, and it can be set on
[Option]
page.
RandomH provides high-nibble and RandomL provides low-nibble.
Jump to Path if the low-nibble of random number generator is equal to data. data=0~15.
Ex.
RandomL=0xA?True
; Jump to “True” path if the low-nibble of Random is equal to
0xA.
4.2.36 RandomH = data?Path
The random number is generated by random number generator, and it can be set on
[Option]
page.
RandomH provides high-nibble and RandomL provides low-nibble.
Jump to Path if the high-nibble of random number generator is equal to data. Data=0~15.
Ex.
RandomH=0x3?True
; Jump to “True” path if the high-nibble of Random is equal