APU register table/DSP voice: Difference between revisions

From SNESdev Wiki
Jump to navigationJump to search
m (Fix links to the S-DSP registers page)
(Fix VxSCRN -> VxSRCN typo)
 
Line 41: Line 41:
| High 6 bits of sample pitch.
| High 6 bits of sample pitch.
|-
|-
! [[S-DSP registers#VxSCRN|VxSCRN]]
! [[S-DSP registers#VxSRCN|VxSRCN]]
! SCRN
! SRCN
! $X4
! $X4
| style="text-align: right" | <tt style="white-space: nowrap">SSSS SSSS</tt>
| style="text-align: right" | <tt style="white-space: nowrap">SSSS SSSS</tt>

Latest revision as of 13:02, 4 November 2024

See: APU register table

This table lists the 2 common names for the S-DSP voice registers.

Name Address Bits Type Notes
VxVOLL VOL (L) $X0 SVVV VVVV RW Left channel volume, signed.
VxVOLR VOL (R) $X1 SVVV VVVV RW Right channel volume, signed.
VxPITCHL P (L) $X2 LLLL LLLL RW Low 8 bits of sample pitch.
VxPITCHH P (H) $X3 --HH HHHH RW High 6 bits of sample pitch.
VxSRCN SRCN $X4 SSSS SSSS RW Selects a sample source entry from the directory (see DIR below).
VxADSR1 ADSR (1) $X5 EDDD AAAA RW ADSR enable (E), decay rate (D), attack rate (A).
VxADSR2 ADSR (2) $X6 SSSR RRRR RW Sustain level (S), sustain rate (R).
VxGAIN GAIN $X7 0VVV VVVV
1MMV VVVV
RW Mode (M), value (V).
VxENVX ENVX $X8 0VVV VVVV R Reads current 7-bit value of ADSR/GAIN envelope.
VxOUTX OUTX $X9 SVVV VVVV R Reads signed 8-bit value of current sample wave multiplied by ENVX, before applying VOL.