NY6 User Manual
Ver 1.3 2019/03/28
53
MVAM
RPT5
LDSEC
; Load Tail Address Data
MVLA
Low0(@@Tail) ; Set Head Wave Address
MVAM
RPT0
MVLA
Low1(@@Head)
MVAM
RPT1
MVLA
Mid0(@@Head)
MVAM
RPT2
MVLA
Mid1(@@Head)
MVAM
RPT3
MVLA
High0(@@Head)
MVAM
RPT4
MVLA
High1(@@Head)
MVAM
RPT5
PLAY
; Play
ORGALIGN $, 0x10
L_Head:
#INCLUDATA "Piano_Head.v6x"
ORGALIGN $, 0x10
L_Tail:
#INCLUDATA "Piano_Tail.v6x"
3.17.4.3 Example Code of Head+Tail 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