So for example in the "Alpha Juno" code, if I wanted to antialias the PWM gate where it's extremely likely that you can miss a very narrow pulse (because at 48kHz you start to increment the counter by more than 1 every sample at the low hundreds of Hz output frequency), you'd need to check if the counter wrapped and then see if there was a need for a "blep up" before putting in the "blep down" again?
Something to keep in mind is that if you allow the oscillator frequency to get high enough, then you can have multiple BLEP transitions within the same sampling interval ... more so with narrow pulse widths and such (where the pulse can go high, then low, or vice versa within a single sampling interval).
I guess then I'd detect if it had wrapped while the pulse was less than the phase increment, and then reverse back over my own tracks to find the "up" within the sample?
Statistics: Posted by Gordonjcp — Wed Jan 15, 2025 11:04 pm