NY6 User Manual
Ver 1.3 2019/03/28
44
3.17.1.3 Example Code of Voice Playback
L_START:
MVLA
0x09
; Set Total Playback Channel & Audio Output
MVAT
CHARC
MVLA
0x0F
; Set Digital Volume
MVAT
VOL
MVLA
0x00
; Specify Channel Number
CHNO
MVLA
0xF
; Set Channel Volume (Envelope)
MVAM
RPT0
MVAM
RPT1
LDEN
MVLA
0x01
; Set Voice Interpolation & Tail Disable & Encode Mode
MVAT
DECMD0
MVLA
0x02
MVAT
DECMD1
MVLA
0x0B
; Set Voice PH Value (Voice S.R.=12K)
MVAM
RPT0
MVLA
0x09
MVAM
RPT1
MVLA
0x04
MVAM
RPT2
MVLA
0x00
MVAM
RPT3
LDPH
MVLA
0x00
; Set Voice Wave Address & Execute “PLAY” Instruction
MVAM
RPT0
MVAM
RPT1
MVLA
0x05
MVAM
RPT2
MVLA
0x02
MVAM
RPT3
MVLA
0x01
MVAM
RPT4
MVLA
0x00
MVAM
RPT5
PLAY
; Play
ORG
0x12500
L_Voice:
#INCLUDATA "Demo.v6x"