Rounded Top Triangles (in: DSP and Plugin Devel…)

By: odibo
10 Oct 02:32

A square wave ring modulated with a sine will result in a parabolic wave. Almost. It’s actually |sin(x)|. But that can be corrected easily.

With the Ellipsoid Oscillator, for instance, it would look like this:
[code]
//B is bandwidth in [0.0001,1]

p = sin(x) * sin(x) / sqrt ( sin(x)^2 + (B * cos(x))^2 )

p_corrected = p + corr_amount * (p – p^2)

corr_amount = 0.225 // for almost linear triangle
[/code]
The difference between two phase shifted parabolics is a triangle wave, by the way. So we…

Go to this post

Go to first unread post in this topic

Read more here: Source link