Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

De-zipper code?

For general discussion related FlowStone

Re: De-zipper code?

Postby Perfect Human Interface » 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?
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: De-zipper code?

Postby Spogg » Mon Aug 07, 2017 10:32 am

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
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: De-zipper code?

Postby tulamide » Mon Aug 07, 2017 11:11 am

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: De-zipper code?

Postby SBAudio » Thu Jan 11, 2018 5:28 am

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;
SBAudio
 
Posts: 6
Joined: Tue Jan 14, 2014 10:40 pm

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 70 guests