saw/triangle with 1 slope = cosine: varying cosine frequency (in: DSP and Plugin Devel…)

By: liqih
5 Jan 10:31

Here the functions I use

[code] float poly_blamp(float t, float dt)
{
if(t < dt)
{
t /= dt;
// The residual polynomial for a leaky integrator is (t^2 – 2t + 1) / 2
// This can be simplified to 0.5 * (t – 1)^2
float half_t = t – 1.0f;
return 0.5f * half_t * half_t;
} else
{
return 0.0f;
}
}
/**
* @brief The core PolyBLEP function for a 2.0 magnitude step jump.
*/
float poly_blep(float t, float dt)
{
// Case 1: The phase is near the beginning of the cycle…

Go to this post

Go to first unread post in this topic

Read more here: Source link