NY6 User Manual
Ver 1.3 2019/03/28
50
ORG
0x12500
L_Tail:
#INCLUDATA "Piano_Tail.v6x"
3.17.3.3 Example Code of Tail-Only Melody 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
0x03
; Set Note Interpolation & Tail Enable & Encode Mode
MVAT
DECMD0
MVLA
0x0A
MVAT
DECMD1
MVLA
0x0C
; Set Note PH Value
MVAM
RPT0
MVLA
0x02
MVAM
RPT1
MVLA
0x07
MVAM
RPT2
MVLA
0x00
MVAM
RPT3
LDPH
MVLA
0x00
; Set Tail Wave Address & Execute “LDSEC” Instruction
MVAM
RPT0
; & Execute “PLAY” Instruction
MVAM
RPT1
MVLA
0x05
MVAM
RPT2
MVLA
0x02
MVAM
RPT3
MVLA
0x01
MVAM
RPT4
MVLA
0x00
MVAM
RPT5
LDSEC
PLAY
ORG
0x12500
L_Tail:
#INCLUDATA "Piano_Tail.v6x"