MSP Compression Tutorial 7: Keying
Open Tutorial

Keying

In keying, one sound turns another on (keying is sometimes referred to as “side-chain gating” and the “key” is sometimes called the side-chain signal). This can produce some interesting electronic music effects, such as drum rhythms imposed on a chorus. The patch shows the compression patch modified for keying. This did not require many changes—simply the separation of the control signal from the processed signal and the removal of the switch that triggers unity gain at the threshold. One more thing—the sense of the gain calculation (difference between the control and the threshold) is reversed by exchanging the leads on the math subpatch. Thus the amplification of the left signal is set by the level minus the threshold. When the control level is below the threshold this is negative, giving a reduction in gain.

This kind of patch can be fussy about levels, so an output gain is provided to give extra boost if needed.

With this setup, a signal in the left channel will not pass through unless a signal is present on the right channel. The ratio determines how much effect the control has on the left signal. If the ratio is set to 1:1, there is no effect at all. For ratios much above 2:1, there may be some distortion. The threshold determines how strong the control has to be to turn the left input on.

See Also

Name Description
rampsmooth~ Smooth an incoming signal
MSP Compression Introduction: What is Compression? MSP Compression Introduction: What is Compression?
MSP Compression Tutorial 1: Peak Limiting MSP Compression Tutorial 1: Peak Limiting
MSP Compression Tutorial 2: Basic Compression MSP Compression Tutorial 2: Basic Compression
MSP Compression Tutorial 3: Tweaking Compression MSP Compression Tutorial 3: Tweaking Compression
MSP Compression Tutorial 4: Compression on Real Instruments MSP Compression Tutorial 4: Compression on Real Instruments
MSP Compression Tutorial 5: Multiband Compression 1 MSP Compression Tutorial 5: Multiband Compression 1
MSP Compression Tutorial 6: Multiband Compression 2 MSP Compression Tutorial 6: Multiband Compression 2
MSP Compression Tutorial 8: Microsounds MSP Compression Tutorial 8: Microsounds
MSP Compression Tutorial 9: Ducking MSP Compression Tutorial 9: Ducking
MSP Compression Tutorial 10: Controlling Feedback MSP Compression Tutorial 10: Controlling Feedback