NY6 User Manual
Ver 1.3 2019/03/28
49
4. Configure Digital Volume
There are 16 kinds of digital volume could be applied, from 0x0 to 0xF.
5. Assign CHNM to Play
Select specific NY6 channel to play melody 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 Waveform File Format
As Tail-Only mode is adopted, Head and Tail waveform are enabled. The so-called Tail-Only
mode is to use same wave to Head and Tail. The file format of patch file could be PCM or
ADPCM5.
9. Determine PH value
PH value is determined according to formula
PATCH
NOTE
INST
F
F
×
F
4096
×
CH
×
8
×
SR
.
For example, patch SR=22,050 Hz, CH=2, F
INST
=2,000,000, F
PATCH
is G3 (196.0 Hz), F
NOTE
is B3
(246.9 Hz), the PH value will be 0x38E.
10. Play Melody
Although Tail-Only mode is adopted, NY6 still take advantage of Head+Tail mode to synthesize
melody. In other words,
the
same
waveform
will
be
played
as
Head
waveform
and
Tail
waveform.
What users have to do is to assign the starting address of Tail-only waveform as that of Head-
Only waveform. Therefore both waveforms point to the same address. Instruction LDSEC can be
used to play “Tail” waveform and its usage is illustrated by the following piece of codes.
MVLA
0x0
; Set Tail Wave Address
MVAM
RPT0
MVAM
RPT1
MVLA
0x5
MVAM
RPT2
MVLA
0x2
MVAM
RPT3
MVLA
0x1
MVAM
RPT4
MVLR
0x0
MVAM
RPT5
LDSEC
; Load Tail Address Data
PLAY
; Play