Q-Code User Manual
Ver. 7.0 2021/11/30
172
3. The Header of encoded file contains sentence or voice, user only need to give index to
play.
4. If index exceeds the maximum number of data in SPI Flash, this command will play data at
Index 0.
5. SPIPlay cannot be used with Voice commands (PlayV / PlayVS) / MIDI commands (PlayM /
PlayMS) at the same time.
6. When SPIPlay is used for playing action sentence in NY6 / NY7, action channel is fixed at
Ch1.
7. If user specifies the Px.n parameter, it means SPIPlay is applied to action playback. Ch
parameter showed action channel can be Ch1 ~ 20. The selected file must be action file
otherwise the command will be no effect. If user doesn’t specify the Px.n parameter, it
means SPIPlay is applied to Voice / MIDI playback, Ch parameter showed audio channel
can be Ch0 / Ch1 only. The selected file must be Voice / MIDI file otherwise the command
will be no effect.
8. In NY6, when playing both the voice and action data from SPI flash at the same time, if the
voice factor is 1~9 and the sampling rate exceeds 16kHz (or the factor is 10~PCM and
sampling rate exceeds 10kHz), the action data will not be output.
Ex.
Specify data to be played in NY7.
SPIPlay(1, SPI1) / SPIPlayS(2, SPI1)
; Use immediate value.
SPIPlay(R0, SPI1) / SPIPlayS(R2:R1:R0, SPI1)
; Use the value of Ri.
SPIPlay(X0, SPI1) / SPIPlayS(X1:X0, SPI1)
; Use immediate value.
Ex.
Specify SPI channel in NY7.
SPIPlay(1, SPI1) / SPIPlay(1, SPI2)
; Speicfy SPI channel.
SPIPlay(R1:R0)
; Not specify SPI channel, use SPI1 by default.
Ex.
Play action on SPI Flash in NY6.
SPIPlay(0, PA.3)
; Index 5 playback, action output to PA.3.
Ex.
Play action on SPI Flash in NX1.
SPIPlay(Ch0, 0, PA.3)
; Index 5 playback, action play on Ch1 and
output to PA.3.
Ex.
P1: SPIPlay(5), PB.3=1
; After the end of Index 5 playback,
execute PB.3=1.
P2: SPIPlayS(5), PB.3=1
; Execute PB.3=1 immediately after Index 5
starts to play.
P3: SPIPlay(R1:R0, SPI1)
; Use the index value “R1:R0” to play, R1=High
4-bit, R0=Low4-bit.
P4: SPIPlay(X0++)
; Use the index value “X0” to play, The value of