Page 3 of 3

Re: De-zipper code?

Posted: Mon Aug 07, 2017 10:04 am
by Perfect Human Interface
Interesting. Using a hop of any size would mean the smoother doesn't react to changes in the input immediately though right?

Re: De-zipper code?

Posted: Mon Aug 07, 2017 10:32 am
by Spogg
Perfect Human Interface wrote:I think Spogg's might be too subtle to visualize.


Mine was made for a specific fixed purpose. For different smoothing you would need n x single sample delays and multiply by 1/(n+1) for correct averaging.

The one I uploaded was to give an approximately 5uS total rise time for an instant full scale( 0-1) step change.

It works, but really I just wanted to join in a bit. Sad or what? :lol:

Cheers

Spogg

Re: De-zipper code?

Posted: Mon Aug 07, 2017 11:11 am
by tulamide
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?

Yes. Hop(x) means, it omits x samples. hop(2048) means active on sample 0, sample 2048, sample 4096, sample 6144, sample 8192, etc.

Re: De-zipper code?

Posted: Thu Jan 11, 2018 5:28 am
by SBAudio
Needed the dezipper code myself. This seems to be very close, and possibly more stable as well.

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;