K2 - Peak Compressor

Post any examples or modules that you want to share here
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: K2 - Peak Compressor

Post by RJHollins »

we love it, whenever you do :lol:
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: K2 - Peak Compressor

Post by Spogg »

I found experimentally, when messing around with my compressors, that there really is no one-size-fits-all.

Settings will depend on source material and what you want to achieve. This makes it tricky to produce meaningful presets for example.

Cheers

Spogg
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: K2 - Peak Compressor

Post by Rocko »

Hi,

Some examples would be nice, yeah...

Why not use elliptic filter for fast slopes and no latency?

Rocko
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: K2 - Peak Compressor

Post by Rocko »

Hi,

Bumping up this topic again...

Why should one prefer to use FIR filters (with latency)? Is it due to phase issues on the Envelope Detector signals? Or is it the need for a steep slope?

Any comments are welcomed.

Rocko
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: K2 - Peak Compressor

Post by martinvicanek »

1. All filters have latency, IIR or FIR.
2. FIRs may be designed to have linear phase, resulting in the same latency for all frequencies.
3. IIRs have nonlinear phase, which means latency (or, more precisely, group delay) depends on frequency.
4. Moderately steep IIR filters step response will overshoot, steeper filters like elliptic will ring.

The ideal lowpass filter for level smoothing would have zero latency and perfect ripple suppression. Unfortunately that's impossible, so we have to compromise. A good filter is one with a small latency-bandwidth product.

The commonly used one-pole filter is not so good because it approaches steady state only slowly, and it does not do a good job in supressing ripples.

A higher order Butterworth filter has good ripple supression but it will overhoot a few times before reaching steady state. This may be perceived as pumping in a compressor. Moreover, if your input signal suddenly drops to zero, your filter output may actually drop below zero. Not good if you want to take log or power.

The reason why I favor a FIR for the envelope follower is that it can be designed to not ring, overshoot or creep. It follows the audio level with a finite delay. For linear phase, you get a natural indication for look-ahead time.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: K2 - Peak Compressor

Post by martinvicanek »

Here is a pulsewith different envelope follower filters:
yellow: common single pole with different attack and release times.
green: 4-pole Butterworth filter
blue: FIR
1pole.png
1pole.png (41.15 KiB) Viewed 29415 times

4poleButterworth.png
4poleButterworth.png (39.58 KiB) Viewed 29415 times

FIR.png
FIR.png (39.17 KiB) Viewed 29415 times
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: K2 - Peak Compressor

Post by Rocko »

Thanks for the explanation. SUPER interesting.

This is all new to me, so I might be terribly wrong...

I'm testing this assumption here:
[Assumption]: For pro-audio compressors, the minimal release time could be something like 50 ms.
At such release times the ripples (of first order IIR at E.F.) have no effect.


Images show a sine-wave signal which is amplitude modulted to have a 'burst' shape.
Signal shown with the 'gain signal'.

First image (gain signal in green) shows the ripples for a 100Hz signal with release = 50 ms.

Second image (gain signal in yellow) shows the ripples for a 100Hz signal with release = 5 ms. Much lower than the assumed minimum.

Third image (gain signal in red) shows the ripples for a 1000Hz signal with release = 5 ms.

From these images it seems to me that ripples are a none-issue (50ms release minimum).

Again, I'm quite new to this... Just asking.
Does this make sense to you ? Is this assumption good?
Can we say that 'first order IIR' can be used for Release greater than 50ms and signals 50Hz and higher?

Any comments are welcomed. Just learning here...
Attachments
IIR_1stOrder_100Hz_Att0.5_Rel50_small.jpg
IIR_1stOrder_100Hz_Att0.5_Rel50_small.jpg (13.56 KiB) Viewed 29351 times
IIR_1stOrder_100Hz_Att0.5_Rel5_small.jpg
IIR_1stOrder_100Hz_Att0.5_Rel5_small.jpg (13.96 KiB) Viewed 29351 times
IIR_1stOrder_1KHz_Att0.5_Rel5_small.jpg
IIR_1stOrder_1KHz_Att0.5_Rel5_small.jpg (18.16 KiB) Viewed 29352 times
Last edited by Rocko on Sun Feb 12, 2017 10:55 am, edited 2 times in total.
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: K2 - Peak Compressor

Post by nix »

hey mate!
you have noise I the first and third plots,
also quick release is nice IMO
I agree, real interesting Rocko and Martin.
How does windowed RMS look I wonder.
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: K2 - Peak Compressor

Post by Rocko »

you have noise I the first and third plots,


Sorry - please elaborate. Are you reffering to the images? Mine or Martin's? To me they all seem OK.

How does windowed RMS look I wonder.

I'll happily run some RMS tests and share the plots. But, let's first concentrate on the PEAK ones...

What do you mean by 'fast' release? Faster than 50ms?
My question is if we can assume that: "For fast release (shorter than 50ms) one can not rely on first-order IIR. For abover 50ms, it is good enough".

Thanks,
Rocko
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: K2 - Peak Compressor

Post by nix »

I was referring to your images Rocko,
the first and third ones start with some amplitude already.

Yep, faster than 50 ms.

My application is a hexaphonic electric guitar pitch to synth converter.
I use RMS atm. It requires a 10ms window at the moment.
So I need a follower of some kind to do the note on/offs.
Post Reply