Re: De-zipper code?
Posted: Mon Aug 07, 2017 10:04 am
Interesting. Using a hop of any size would mean the smoother doesn't react to changes in the input immediately though right?
DSP Robotics and FlowStone Graphical Programming Software Support and Forums
https://dsprobotics.com/support/
Perfect Human Interface wrote:I think Spogg's might be too subtle to visualize.
Perfect Human Interface wrote:Interesting. Using a hop of any size would mean the smoother doesn't react to changes in the input immediately though right?
Code: Select all
streamin i;
streamin duration;
streamout o;
float samplerate = 44100;
float coef;
float last;
float step;
coef = 1 / (duration / 1000 * samplerate);
step = step + (last != i) & (coef * (i - o) - step);
o = o + (step < 0) & (max(o + step, i) - o);
o = o + (step > 0) & (min(o + step, i) - o);
last = i;