Hello everyone,
I am developing a set of audio synthesizer oriented modules. I need to add a variable PWM square wave, common in music synthesis.
Just before turning the key on production I stumbled upon a really strange phenomena.
It seems it involves any 'blocks' which does a sample by sample evaluation and, moreover, all the source blocks that generates variable duty cycle rectangular waves.
I started using an (already derived) triangular waves and simply applying it to an ABCD block with a variable (DC block to have it rock-solid, firsthand) 'PWM' level.
The rectangular output is jittery, and it don't have any realtion to the waveform frequency (20Hz to 8/10khz)
System is running at 48khz and I can see a 20uS range of this Jitter.
To keep it barebones and to rule out any noisy threshold value, I also tried to do this with a fixed saw or triangular wave (generated from source blocks) at the input of the ABCD but I obtain the same thing.
Another test was by using a zero-crossing block and a toggle with feedback to generate a pulse, everything works logically but there is no way of getting rid of this jitter.
Unfortunately is really audible.
Any hint on root causes?