I'm generating notes using the 60Hz interrupt with 16bit mode with channel 0 locked onto to channel 1. AUDC1 is set to pure tone, no high pass filters, 1.79MHz clock. I'm attempting to add attack and decay to the notes by incrementing/decreasing the volume bytes in AUDC1.
When the volume changes I get these wave discontinuities as highlighted which produces an unwanted rattling noise. The rattling noise occurs only during the attack/decay periods.
My understanding so far is that changing AUDC# or AUDF# resets the wave generator, resulting in a discontinuity if this happens in the middle of a wave period. Am I supposed to time the AUDC#/AUDF# changes to coincide with the beginning of each wave and can that be done during the 60Hz interrupt routine?