NY6 User Manual
Ver 1.3 2019/03/28
43
5. Assign CHNM to Play
Select specific NY6 channel to play voice before any further configuration.
6. Configure Envelop to Change Channel Volume
By writing value to register {RPT0, RPT1} and executing instruction LDEN, there are at most 256
levels to adjust channel volume.
7. Set Interpolation
User can select interpolation function enable or disable.
8. Setup “Head” Waveform and Voice File Format
As voice is played, only is “Head” waveform allowed. The file format of voice file could be PCM,
ADPCM4 or ADPCM5.
9. Determine PH value
PH value is determined according to formula
INST
F
4096
×
CH
×
8
×
SR
.
For example, SR=16,000 Hz, CH=2, F
INST
=2,000,000, the PH value will be 0x20C.
10. Play Voice
Instruction PLAY can be used to play voice and its usage is illustrated by the following piece of
codes.
MVLA
0x0
;
Set Voice Address
MVAM
RPT0
MVAM
RPT1
MVLA
0x5
MVAM
RPT2
MVLA
0x2
MVAM
RPT3
MVLA
0x1
MVAM
RPT4
MVLR
0x0
MVAM
RPT5
PLAY
; Play
ORG
0x12500
L_Voice:
#INCLUDATA "Demo.v6x"