Thursday, October 12, 2023

DCO bug

 

I get some clickling when changing pitch (when not using an envelope)

This shows what is going on - when the new pitch is lower, the timer is not properly updated so it resets the pulse too early, before the wave has reached its maximum. Perhaps this could be fixed by simply letting the wave run until it is reset by the comparator?