Q-Code User Manual
Ver. 7.0 2021/11/30
160
the playback frequency is 10k (If R3=0x0, R2=0x3,
R1=0XF, R0=0x1, then play no.V1009 voice file).
P4: PlayV(ch0, X1:X0++,10k), PB.3=1
; Execute PB.3=1 after playing the voice file
specified by register value in voice channel 0, and
the playback frequency is 10k (If X1=0x01, X0=0xF2,
then play no.V498 voice file, X0 automatically
increases 1, X0=0xF3).
P5: PlayVS(ch0, X1:X0, 10k), PB.3=1
; Play the voice file specified by register value in
voice channel 0, the playback frequency is 10k, and
simultaneously execute PB.3=1 (If X1=0x01,
X0=0xF2, then play no.V498 voice file).
P6: PlayVS(ch0, R3:R2:R1:R0, 10k), PB.3=1
; Play the specified voice file by Register content
value in voice channel 0, the playback frequency is
10k, and simultaneously execute PB.3=1. (If R3=0x0,
R2=0x3, R1=0XF, R0=0x1, then play no.V1009 voice
file.)
P7: PlayVS(ch0, X1:X0++,10k), PB.3=1
; Play the specified voice file by Register content
value in voice channel 0, the playback frequency is
10k, and simultaneously execute PB.3=1. (If
X1=0x01, X0=0xF2, then play no.V498 voice file, X0
automatically increases 1, X0=0xF3.)
Ex.
Specify play speed.
P1: PlayV(Ch1, $V0,6.35k)
; Play voice with play speed 6.35kHz.
P2: PlayV(Ch1, $V0) / PlayVS(Ch1, $V1)
; Use voice file sample rate as play speed.
P3: PlayV(Ch1, $V0, R1:R0)
; Use R1 and R0 to specify play speed.
P4: PlayV(Ch1, $V0 ,X0) / PlayVS(Ch1, $V0,X0)
; Use Xi to specify play speed.
Ex.
Repeat.
P1: PlayV(Ch1, $V0) *3
; Play voice file for 3 times.
Ex.
Execute background path while playing voice.
P1: PlayV(Ch1, $V0)&[BG1,BG2] / PlayVS(Ch1, $V1)&[BG1,BG2]
; Execute BG1 and BG2 while playing voice.
P2: PlayV(Ch1, $V0)&[BG1,X] /
PlayVS(Ch1, $V0)&[BG1,X]
; Execute BG1 while playing voice, but keep background path not changed.
P3: PlayV(Ch1, $V0)&[OFF,X] /
PlayVS(Ch1, $V0)&[OFF,X]
; Stop Background1 while playing voice, and keep background2 not changed.