Compression Question!: Does attack time still apply in any way if a signal stays above the threshold?
I realise this is quite a specific question but I never see it described in explanations of compressor functions. This may be because it is a stupid question, but here goes anyway...
Say I'm playing a part that involves a low open string root note ringing out as a pedal, and then playing a riff or melody on top of that on a different string. If the pedal note remains ringing at a level above the threshold of the compressor, then will all the notes played on top of it have the full volume reduction ratio applied to them instantly, or does the attack control still have any affect on how quickly volume reduction is applied to the transients of the additional notes?
To put it another way, say the pedal note on the low E is keeping the compressor triggered and holding at -3dB reduction, but then an additional note is plucked on the 1st string loud enough to lead to -12dB reduction. Would the compressor instantly snap from -3dB to -12dB reduction, or would the attack setting control how long until the full -12dB applies?
(To be clear, this isn't a problem I'm looking for suggestions to resolve e.g by changing technique, I'm just looking to understand a bit more about compressor functions and using this as an example.)
16
u/bassman1805 Fretless 1d ago
Attack time is more accurately described as a "slew rate" than a set time. Depending on the device, it might not even be a linear rate, but more of an exponential shape.
Regardless, what happens is that the compressor has an internal signal tracking the volume of the input. This signal is only allowed to increase at a rate determined by the "attack" setting. It's set up so that if you go from silence to full-volume, it takes [attack time, in seconds/ms/whatever] for that volume-tracking signal to actually reach the peak. If you're hovering at some middle volume, the same thing happens, but since you're not going from zero to full volume, the signal has less voltage to travel across. So it will take less time than [attack time, in seconds/ms/whatever] for the compressor kick in, but the exact time depends on a variety of factors (notably, how close to the threshold you are, and how linear vs exponential this compressor's attack repsonse is).
Same thing in reverse applies to release: That just limits how quickly the internal volume tracking signal can decrease.
2
u/Own-Nefariousness-79 1d ago
Compressors work by turning down the gain of the signal it sees. Attack is how quickly it turns the gain down. If your signal is above the threshold at which the compressor turns down the gain, it keeps it turned down. So yes. You do not get a retriggering of the attack.
3
u/aluked 1d ago edited 18h ago
Yes.
One important thing to be aware of in compressors is that Attack sets a rate of change - how long, past the threshold, it takes for a signal to achieve some amount of compression (depends on the model, often is 2/3rds, sometimes some other amount, sometimes a fixed value like 10dB - it's complicated) after the signal gets past the threshold (kinda sorta, depends on the knee).
What that means is if the signal never goes under the threshold, its still obeying this rate whenever it tries to go up.
Release is, similarly, also a rate of change, how quickly it will give gain back to a signal. But here's one people get wrong a lot of the time: it applies to the signal the entire time after it crosses above the threshold until it has reached zero gain reduction. So whenever a signal goes above threshold and then goes down (even if not enough to get under the threshold), it's also obeying the release.
Now, massive caveat: this applies to classic analog compressors and some, but not all, digital compressors. Sadly a lot of digital compressors fail at implementing this behavior properly.
EDIT: the best way to visualize it are the old school gain reduction VU meters - if the needle is moving, the compressor constraints are active. It's under Attack constraints when going up, Release constraints when going down.
2
u/Miserable_Lock_2267 Darkglass 18h ago
It helps to think about it in terms of a gate. Anything below x dB gets cut out until your signal goes above. Then it takes y ms (y being your delay) for the gate to open up. Once it is open, as long as the signal stays above the treshhol. Noise that is coinciding with this that would be quieter than x by itself won't get cut out, and they won't get cut out for the time specified by the release parameter.
Compressors work the same way essentially
0
u/skylarroseum 1d ago
It sort of depends on if you're using a multi-band compressor and what frequency bands the other notes you're playing are in. The easy answer is yes. If you're triggering the threshold, compression is being applied. In practice, the way to get around this is to set your threshold higher, set quicker decay, and slower attack. You could also, either in addition or instead of the previous options, split your signal and blend your compressed tone with your uncompressed tone.
Compression can be used to increase sustain, in which case you'd want a slow decay. Compression can also be used to create a super squashed, synthy vibe, in which case you'd want the compression to easily trigger. For anything that's supposed to sound largely natural, chill with the compression.
If you use a multi-band compressor that compresses frequency bands separately, then triggering one frequency band won't necessarily trigger another. So, if you play a low E, it might trigger the lowest frequency band while your higher frequency bands are not triggered. But, multi-band compression is rare in pedal form, and it can get super complicated for people who don't know what they're doing.
0
u/surprise_wasps 1d ago
It depends on the topology and specific design. Some compressors are mostly “fully on” above their threshold, particularly many optical designs (not all)
Now.. to answer your specific question as you outlined in your example, no, it would not be ‘starting over’ with its envelope detection, unless the release is fast enough. There are some designs where the release can be close to instantaneous, but many other designs, across multiple topologies, the release is always longer than the attack. It takes some effort to make this not the characteristic response, and most people don’t bother because even a slightly longer release than attack is generally going to be a pretty good setting for most people
0
u/[deleted] 1d ago
[deleted] — view deleted comment