I'm confused how to mix the 5-bit output with the other channels. Should I be doing something like this:At maximum volume, the pulse channels of the VRC6 are roughly equivalent to the pulse channels of the 2A03 (except inverted). The DAC of the VRC6, unlike the 2A03, appears to be linear.
The final mix is a 6-bit DAC summing the two 4-bit pulse outputs and the high 5 bits of the saw accumulator.
Code: Select all
95.88
pulse_out = --------------------------------------------------------------------------------------
(8128 / (apu_pulse1 + apu_pulse2 + vrc6_pulse1 + vrc6_pulse2 + vrc6_sawtooth)) + 100