Q-Code User Manual
Ver. 7.0 2021/11/30
133
Note: NY4 / NY9T do not support this command.
Ex.
Vol!=5?True
; Jump to “True” path if volume is not at level 5.
4.2.11 ChUsed(Ch)?Path
Jump to Path if Voice or Melody is playing in the specified channel.
Ch:
channel. If Ch is not designated, it is regarded as all channels.
NY5+ supports 0 ~ 3 or Ch0 ~ Ch3.
NY6 supports 0 ~ 5 or Ch0 ~ Ch5.
NY7 supports 0 ~ 7 or Ch0 ~ Ch7.
NX1 supports 0 ~ 3 or Ch0 ~ Ch3.
Note: NY4 / NY5 / NY9T do not support this command.
Ex.
TR1: PlayV(ch4,$V0)
TR2: PlayM($M0)
TR3: ChUsed(3)?Channel_Playing
; Jump to “Channel_Playing” path if channel 3 is in use.
4.2.12 Voice(Ch)?Path
Jump to Path if voice is being played on the designated voice channel.
Ch:
voice channel. If Ch is not designated, it is regarded as all voice channels.
NY4 does not support Ch parameter.
NY5 / NY5+, Ch=0 ~ 3 or Ch0 ~ Ch3.
NY6, Ch=0 ~ 5 or Ch0 ~ Ch5.
NY7, Ch=0 ~ 7 or Ch0 ~ Ch7.
NX1, Ch=0 ~ 3 or Ch0 ~ Ch3.
Note:
1. NY9T does not support this command.
2. This command is available only when program uses PlayV or PlayVS.
Ex.
PowerOn
: InputState
TR1: PlayV(ch0,$V0), PlayV(ch1,$V1), PlayV(ch2,$V2), PlayV(ch3, $V3)
TR2: Voice?Voice_Playing
; Jump to “Voice_Playing” path if any voice is playing.
TR3: Voice(0)?Ch0_Playing
; Jump to “CH0_Playing” path if voice is playing on channel 0.
TR4: Voice(1)?Ch1_Playing
; Jump to “CH1_Playing” path if voice is playing on channel1.
TR5: Voice(ch2)?Ch2_Playing
; Jump to “CH2_Playing” path if voice is playing on channel 2.
TR6: Voice(ch3)?Ch3_Playing
; Jump to “CH3_Playing” path if voice is playing on channel 3.