Click here to purchase the entire book in PDF format.
|
|
The only problem with the schematic so far is that the VCA is a current amplifier not a voltage amplifer. Since we prefer to think in terms of voltage most of the time, we'll need to convert the voltage signal that we're feeding into the compressor into a current signal of the same shape. This is done by sticking the VCA in the middle of an inverting amplifier circuit as shown in Figure 6.46:
Here's an explanation of why we have to build the circuit like this. Remember back to the first stuff on op amps - one of the results of the feedback loop is that the voltage level at the negative input leg MUST be the same as the positive input leg. If this wasn't the case, then the huge gain of the op amp would result in a clipped output. So, we call the voltage level at the negative input ``virtual ground'' because it has the same voltage level as ground, but there's really no direct connection to ground. If we assume that the VCA has an impedance through it of 0
(a pretty safe assumption), then the voltage level at the signal input of the VCA is also the same as ground. Therefore the current through the resistor on the left in the above schematic is equal to the ``Audio in'' voltage divided by the resistor value. Now, if we assume that the VCA has a gain of 0 dB, then the current coming out of it equals the current going into it. We also happen to remember that the input impedance of the op amp is infinite, therefore all the current on the wire coming out of the VCA must go through the resistor in the feedback loop of the op amp. This results in a voltage drop across it equal to the current multiplied by the resistance.
Let's use an example. If the ``Audio in'' is 1 Vrms, then the current through the input resistor on the left is 0.1 mArms. That current goes through the VCA (which we'll assume for now has a gain of 0 dB) and continues on through the feedback resistor. Since the current is 0.1 mA rms and the resistor is 10 k
, then the voltage drop across it is 1 V rms. Therefore, the ``Audio out'' is 1 V rms but opposite in polarity to the input. This is exactly the same as if the VCA was not there.
Now take a case where the VCA has a gain of +6 dB for some reason. The voltage level at its input is 0 V (virtual ground) so the current through the input resistor is still 0.1 mA rms (for a 1 V rms input signal). That current gets multiplied by 2 in the VCA (because it has a gain of +6 dB) making it 0.2 mA rms. This all goes through the feedback resistor which results in a voltage drop of 10k * 0.2 mArms = 2 V rms (and opposite in polarity). Ah hah! The gain applied to the current by the VCA now shows up as a gain on the voltage at the output. Now all we need to do is to build the control circuitry and we have a compressor...
The control circuitry needs a number of things: a level detector, compression ratio adjustment, threshold, threshold level adjustment and some other stuff that we'll get to. We'll take them one at a time. For now, let's assume that we have a compressor which is only looking at the RMS level to determine its compression characteristics.