NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the base address of the sample in WaveTable RAM, to be played (assuming the voice is configured for sample playback)
u8 in IO at 0x53 called VOICEWAVEBASEADDRLREG
76543210
BBBBBBBB
B: RW WaveTable Sample Base Address (Low Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the base address of the sample in WaveTable RAM, to be played (assuming the voice is configured for sample playback)
u8 in IO at 0x54 called VOICEWAVEBASEADDRHREG
76543210
BBBBBBBB
B: RW WaveTable Sample Base Address (High Byte)
// Compute actual addresses within the WaveTable RAM.
#define WAVEBASEADDR2AUDIOBANK(baseAddr,offset) (((baseAddr)+(offset))>>13)
#define WAVEBASEADDR2AUDIOBANKOFFSET(baseAddr,offset) (((baseAddr)+(offset))&((1<<13)-1))
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the length of the sample in WaveTable RAM, to be played
u8 in IO at 0x55 called VOICEWAVELENLREG
76543210
LLLLLLLL
L: RW WaveTable Sample Length (Low Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the length of the sample in WaveTable RAM, to be played
u8 in IO at 0x56 called VOICEWAVELENHREG
76543210
LLLLLLLL
L: RW WaveTable Sample Length (High Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the offset within the sample where the sound loops to, each time it has played to the end. A value of zero causes the entire sample to play again.
u8 in IO at 0x57 called VOICEWAVELOOPSTARTLREG
76543210
LLLLLLLL
L: RW Sample Loop Start Offset (Low Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the offset within the sample where the sound loops to, each time it has played to the end. A value of zero causes the entire sample to play again.
u8 in IO at 0x58 called VOICEWAVELOOPSTARTHREG
76543210
LLLLLLLL
L: RW Sample Loop Start Offset (High Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the length of the sample in WaveTable RAM, on the second and subsequent loops to be played
u8 in IO at 0x59 called VOICEWAVELOOPLENLREG
76543210
LLLLLLLL
L: RW WaveTable Looped Sample Length (Low Byte)
NOTE: [n] is chosen through the use of VOICEBANKREG Chooses the length of the sample in WaveTable RAM, on the seconds and subsequent loops to be played
u8 in IO at 0x5A called VOICEWAVELOOPLENHREG
76543210
LLLLLLLL
L: RW WaveTable Looped Sample Length (High Byte)