Hi
I'am trying synthesize square wave by adding sine waves.
I'am adding only integer odd harmonics, also amplitude of each one harmonic is a half of previous.
I can't get the square wave.
Help me please.
Kind regards.
Synthesizing square wave
Hi
I'am trying synthesize square wave by adding sine waves.
I'am adding only integer odd harmonics, also amplitude of each one harmonic is a half of previous.
I can't get the square wave.
Help me please.
Kind regards.
what's [cycle~] ? is that just [osc~]
if so, then you need to bang a zero to the right inlet to make sure all oscillators are in sync
Thank you for advice. I did it but got same result. (
Strange ,when frequency is 213 Hz it's square wave otherwise no.
The issue is that osc~ outputs a cosine wave and you need to add up sine waves. If you set your 'phase' off set to a 0.75 it should work.
Now it works. Thank you very much!
Pleasure
Here's a patch I based on one i found somewhere at some point.
puredata punx http://www.cyberpunki.biz
There's an easier way to do it. Generate two phasor~'s with the same frequency and a phase of 0.5 between them, then subtract one from the other.
also, by changing the phase from 0.5 to 0.25 or 0.125 you'll make the pulse wave asymmetrical (narrow and narrower).
even easier is a |phasor| -> |< .5| and really easy to make asymmetrical
but he wanted to generate from sine
so there is sinesum and tabosc~ left to mention
found somewhere in the help browser about arrays i think
pd redefining mathematics |expr fact(0)|==0
Oops! Looks like something went wrong!