How a Vocoder Works · Volume 4

How a Vocoder Works — Vol 04: VCAs and Synthesis

The synthesis half of a vocoder is a row of multipliers. Each takes one band of the carrier and one control voltage from the analysis half, and outputs their product; the products are summed into the output. Electrically this is the least glamorous part of the machine, and in practice it causes most of the trouble: the multiplier’s distortion, its leakage of control voltage into the audio, its noise when closed, and the phase relationships of the bands when they are added back together decide whether a vocoder sounds clean or murky. This volume covers the multipliers used in real designs — the operational transconductance amplifier, the matched transistor pair, the compander chip and a switching scheme — then the summing stage and its polarity trick, then gain staging and noise.

4.1 What the multiplier must do

For band k the synthesis output is ideally

y_k(t) = K × e_k(t) × c_k(t)

where e_k is the band’s control voltage (≥ 0, changing at tens of hertz) and c_k is the carrier filtered to band k (bipolar, at audio rate). This is a two-quadrant multiplication: one input is one-signed, the other is bipolar. The multiplier needs:

  • Linearity in c. The carrier band should pass undistorted; harmonic distortion here creates components outside the band that the filter has just removed.
  • A known law in e. Linear (gain ∝ e) is what the theory of Vol 1 assumes. An exponential law (gain in dB ∝ e) is common in synthesizer VCAs and changes the dynamics of the vocoder.
  • No leakage of e into y. The control voltage itself must not appear at the output. Since e_k is a speech envelope, any leakage sounds like low-frequency thumping that follows the syllables — “breakthrough.”
  • Low noise when closed. In a pause, most channels are near zero gain. Their residual output noise adds across all channels.

4.2 The operational transconductance amplifier

4.2.1 How an OTA multiplies

An OTA such as the RCA CA3080 or the National LM13700 (and its JRC twin, the NJM13600) is at heart a differential transistor pair whose tail current is supplied from outside through the amplifier bias current pin, I_ABC. A differential input voltage V_in steers the tail current between the two transistors; current mirrors subtract the two collector currents and deliver the difference as an output current. For bipolar transistors the steering follows a hyperbolic tangent:

I_out = I_ABC × tanh(V_in / 2V_T), V_T = kT/q ≈ 25.9 mV at 27 °C.

For small inputs tanh(x) ≈ x, so

I_out ≈ g_m V_in, g_m = I_ABC / 2V_T ≈ 19.3 × I_ABC (siemens per ampere; the LM13700 data sheet rounds it to 19.2 I_ABC at 25 °C).

The output current is the product of the input voltage and the bias current. Make I_ABC proportional to the control voltage and V_in the carrier band, and the OTA is a two-quadrant multiplier. That is exactly how MFOS and Elektor use it.

-150 -100 -50 0 50 100 150 -1 -0.5 0 0.5 1 Differential input voltage (mV) I_out / I_ABC Elektor: ±15.9 mV pk MFOS: ±24.8 mV pk I_out = I_ABC · tanh(V_in / 2V_T) small-signal: g_m = I_ABC / 2V_T V_T = kT/q ≈ 25.9 mV at 27 °C; linearising diodes not used. Input peaks from each design's attenuator and nominal filter swing.

4.2.2 The linear range and its arithmetic

tanh is only linear near zero. Expanding tanh(x) ≈ x − x³/3 for an input x sin ωt gives a third harmonic at about x²/12 of the fundamental, where x = V_peak / 2V_T. Keeping that below 1 % requires x below about 0.35, i.e. V_peak below about 18 mV. Every OTA vocoder therefore puts a large attenuator in front of the OTA input:

Elektor (CA3080). The synthesis filter output reaches the OTA through C13 (180 nF) and R8 = 47 kΩ into R9 and R10, two 150 Ω resistors, one on each input (Figure 3, January 1980). The divider ratio is (47,000 + 150)/150 = 314. The setting-up procedure drives the synthesis filter to “about 10 V p-p” (Elektor, September 1980), so the OTA sees 5 V / 314 = 15.9 mV peak: x = 15.9/51.8 = 0.307, third harmonic ≈ 0.307²/12 = 0.8 %.

MFOS (LM13700). The filter output is divided by R52 = 100 kΩ and R55 = 1 kΩ (ratio 101). Wilson: “It is important not to over-drive the transconductance op-amp’s input to avoid distortion.” The typical filter output is “in the neighborhood of 5V P-P,” so the OTA sees 2.5 V / 101 = 24.8 mV peak: x = 0.478, third harmonic ≈ 1.9 %. The LM13700 has built-in linearising diodes that allow much larger inputs at low distortion; the MFOS documentation does not mention using them.

Both figures are at full drive; at typical speech levels most bands run well below full drive and the distortion falls with the square of the level. A few percent of third harmonic in one band of a vocoder is far less audible than in a single-voice amplifier, because the carrier band is already a narrow slice of a harmonically rich waveform.

4.2.3 Driving I_ABC: the voltage-to-current converter

The follower produces a voltage; the OTA wants a current. Both designs use an op-amp and a PNP transistor as a voltage-controlled current source.

MFOS. U5-A (an LM324 section), Q6 (2N3906) and R68 = 43 kΩ. The op-amp forces the PNP’s emitter to follow the negative-going envelope, so a current of |V_env| / 43 kΩ flows through R68 and out of Q6’s collector into the OTA’s bias pin. Wilson: “As voltage on the output of U5-A goes more negative more current is allowed to flow through R68 (43K) and the emitter to collector of Q6 resulting in current flowing into the bias input (pin 16) of U6-B. The greater the current the greater the amplitude of the signal passing through the VCA.” An envelope of −4.3 V therefore gives about 100 µA. With no input, U5-A sits at “about −400mV to −500 mV”, which holds Q6 off.

Elektor. The incoming control voltage Uc,in passes through the front-panel level control P3, a buffer A6, and a converter built from A8 and T2 (BC557B) with R11 = 4.7 kΩ feeding the CA3080’s bias pin (pin 5). A preset P4 (10 kΩ, from the −15 V rail via R16 = 15 kΩ and R12 = 1 MΩ) “set[s] a threshold value for this current.” The OTAs themselves run from ±15 V (the supply table of figure 3 puts the CA3080’s pins 7 and 4 on the ±15 V rails); the separate ±5 V supply, regulated on the bus board, feeds only the balance preset P2 (see “Trim the offset” below).

4.2.4 Turning the output current into a voltage

An OTA’s output is a current, so it needs a load.

  • MFOS uses the LM13700’s on-chip Darlington buffer. The OTA output pin is loaded and biased by R59 = 4.7 MΩ to +12 V and R60 = 470 kΩ to ground “so that the output signal operates about ground and has amplitude of about 6V P-P.” The buffer output then passes through a coupling capacitor and R56 = 100 kΩ into the virtual-ground mixer.
  • Elektor sends the CA3080 output (point c) to the summing amplifier on the input/output board, an LM301 (A35), followed by the output level control and a TDA1034 (NE5534) output buffer.

An OTA output can also go straight into a virtual-ground summing node: the summing op-amp holds the node at 0 V, the OTA’s current flows into the feedback resistor, and the output voltage is −I_out × R_f. That is the simplest and quietest arrangement and the one used in the Vol 8 design.

One OTA channel VCA (simplified, after the MFOS and Elektor arrangements) +− 100 k1 k +− OTA C (opt.) −+ R_f out = −I_out·R_f band (≈5 V p-p) V→I op-ampPNP R (43 k in MFOS) CV I_ABC ≈ 25 mV pk at OTA input (÷101) I_ABC ≈ |V_CV| / R ≈ 100 µA at 4.3 V g_m ≈ 19.3 · I_ABC I_out ≈ I_ABC · tanh(V_in / 51.8 mV) Virtual-ground summer: all channels feed the same node.

4.2.5 The coupling capacitors as filters

MFOS puts a capacitor between each VCA buffer and its 100 kΩ mixing resistor, with a value that grows as the band frequency falls. Wilson’s reason: “C30 blocks any DC and/or low frequency VCA control voltage signals that bleed through to the VCA’s output from getting to the main audio bus.” With the mixer’s virtual ground at the far end of R56, each capacitor and its 100 kΩ resistor form a first-order high-pass:

Table 1 — MFOS puts a capacitor between each VCA buffer and its 100 kΩ mixing resistor, with a value that grows as the band frequency falls. Wilson's reason: "C30 blocks any DC and/or low frequency VCA control voltage signals that bleed through to the VCA's output from getting to the main audio bus." With the mixer's virtual ground at the far end of R56, each capacitor and its 100 kΩ resistor form a first-order high-pass

MFOS channelCoupling CHigh-pass corner 1/(2π × 100 kΩ × C)
3,330 Hz, 2,546 Hz10 nF159 Hz
2,001 Hz, 1,495 Hz22 nF72 Hz
1,013 Hz, 720 Hz33 nF48 Hz
542, 395, 285, 208 Hz47 nF34 Hz
154 Hz, 101 Hz0.1 µF16 Hz

Values read from schematic pages 2–7; corners calculated. Each corner sits well below its channel’s pass band and well above the 6–12 Hz envelope bandwidth of §3.2 in Vol 3, so it removes most CV breakthrough while costing nothing in band. The trick only works because the MFOS envelopes are slow; a vocoder with fast envelopes would push more breakthrough energy into the audio range, where no capacitor can separate it from the wanted signal.

4.3 Control-voltage breakthrough

4.3.1 Where it comes from

The two input transistors of an OTA are never perfectly matched. Their mismatch behaves as an input offset voltage V_os of a millivolt or so. The output current is then

I_out ≈ g_m (V_in + V_os) = (I_ABC / 2V_T)(V_in + V_os).

The V_os term gives an output current proportional to I_ABC — that is, a copy of the control signal. When the vocoder is driven by speech and the carrier is silent, each channel outputs a faint copy of its speech envelope: thumps and “breathing” at syllable rate. With the carrier present, the same term adds a low-frequency component under the vocoded signal.

4.3.2 How the designs fight it

  • Trim the offset. Elektor’s preset P2 (25 kΩ across ±5 V, through R7 = 100 kΩ) injects a small current into the OTA’s inverting input “to balance the input differential amplifier in the OTA — a necessary precaution to prevent the bias current variations breaking through to the output, in the absence of a ‘carrier’ signal.” The procedure: patch the module’s own control output to its input, blow gently into the microphone for a steady noise, and turn P2 for minimum output (Elektor, February 1980). The 1980 setting-up article asks for breakthrough of no more than 5 mV p-p at the vocoder output, and admits: “In practice, this will not be easy to achieve. It has been found that only 200 out of every 1,000 OTAs manage it!” — one in five, with the advice to replace any OTA that will not trim.
  • Filter it out. MFOS relies on the per-channel coupling capacitors of §2.5 and on slow envelopes.
  • Trim at two points. The VoIS channel board has two trimmers for “Excitation bleedthrough elimination on CHOP,” one before and one after the CV control (TR4 and TR5; VoIS Assembly and Tuning Guide, §11.2).
  • Use a balanced multiplier. A doubly balanced multiplier cancels the control-only term by symmetry; the matched-pair design of §4 approaches this.

4.4 The matched transistor pair: the EM-26

The Soviet EM-26 does not use an integrated OTA. Each channel cell on the vocoder board (ЩХМ3.540.138 Э3) uses a КР159НТ1Е — a matched pair of NPN transistors in one package — as a differential-pair multiplier (DA5 in each cell), with the envelope buffer VT5 (КТ361) setting the pair’s tail current through R34 and a КТ315 (VT6) combining the two collector currents into the output. This is the OTA’s core built from parts: the same tanh law (§2.1), the same g_m = I_tail / 2V_T, but with the difference of the two collector currents taken off by resistors and one transistor rather than by on-chip current mirrors (Elektronika EM-26, Vol 3 §4).

Matched-pair multiplier (EM-26 principle: КР159НТ1Е pair, envelope sets the tail) matched pair (one package) + supply carrier band (mV) AC ground / bias envelope CV → tail current I_T − supply out A: +½ g_m v out B: −½ g_m v g_m = I_T / 2V_T EM-26 schematic note 4: in even-numbered cells R33 connects to R39, i.e. alternate channels drive the other base, inverting the output (read from the factory scan).

Two consequences follow from the topology:

  • Both output phases are available. A differential pair has two collectors carrying equal and opposite signal currents. The schematic’s note 4 reads: “in cells A with even numbers, connect R33 to R39” — that is, even-numbered channels feed the carrier to the pair’s other base, which reverses the sign of the output (Elektronika EM-26, Vol 3 §4.3). This is a free polarity inversion of alternate channels, exactly the summing trick of §5, implemented by a wiring change.
  • Matching matters as much as in an OTA. The КР159НТ1Е exists precisely to provide two well-matched transistors; its V_be mismatch is the V_os of §3.1.

The readings above are from a low-resolution scan of the factory schematic; part numbers and the function of note 4 are clear, but individual resistor values in the multiplier should be checked against a real board.

4.5 Summing, and why alternate bands are inverted

4.5.1 Phasor addition at the crossovers

When all VCAs are open and the carrier is broadband, the output is the sum of all synthesis filter outputs. Where two neighbouring bands overlap, both pass the same frequency, and their outputs add as phasors: magnitude and phase. A resonant band-pass filter’s phase swings through 180° across its band — for a second-order section, from +90° well below f₀, through 0° (relative) at f₀, to −90° well above. At a frequency between two bands, the lower band is above its centre and lagging; the upper band is below its centre and leading.

For a second-order section, the phase relative to its value at f₀ is −arctan[Q(x − 1/x)], x = f/f₀. At the geometric midpoint between bands spaced at ratio r, x = √r for the lower band and 1/√r for the upper, so each is shifted by arctan[Q(√r − 1/√r)] in opposite directions. With Q chosen for −3 dB crossovers (Vol 2 §3.3), Q(√r − 1/√r) = 1, so each is shifted 45° and the two differ by 90°: in quadrature. Summed in the same polarity or in alternate polarity, two equal phasors 90° apart give the same magnitude. A second-order bank is insensitive to the choice.

A fourth-order channel is two such sections in cascade, so its phase shift at the crossover doubles: each band is shifted about 90°, and the two differ by about 180°. Added in the same polarity they cancel; added with one inverted they reinforce.

4.5.2 The numbers

200 500 1k 2k 5k -40 -30 -20 -10 0 6 Frequency (Hz, log scale) Summed gain (dB) (a) Fourth-order bank: 10 bands, 160 Hz-5 kHz, ratio 1.466, two Q 2.0 sections per band 100 200 500 1k 2k 4k -40 -30 -20 -10 0 6 Frequency (Hz, log scale) Summed gain (dB) (b) Second-order bank: the ten MFOS band-pass filters (f0 and Q from Wilson's Table 1) all outputs summed in the same polarity alternate outputs inverted

The figure computes the complex sum of two real filter banks with all VCAs fully open:

  • (a) A fourth-order bank — ten channels from 160 Hz to 5 kHz at ratio 1.466, each two identical Q = 2.0 sections (the Vol 8 design). In the same polarity the sum has a notch at every crossover, the deepest reaching about −47 dB (the plot is clipped at −40 dB), with the band peaks themselves 2.5–7 dB lower than the alternating sum. With alternate channels inverted the sum is flat within about 1.4 dB from 200 Hz to 4 kHz (calculated: +1.6 to +0.2 dB).
  • (b) The second-order MFOS bank (f₀ and Q from Wilson’s Table 1). In the same polarity the sum ripples by about 5 dB; inverting alternate channels makes it slightly worse and lower overall. MFOS sums all channels in the same polarity through the inverting mixer U2-A, which is the right choice for a second-order bank.

For the stagger-tuned Elektor bank the calculation (not plotted) gives a ripple of about 4 dB in the same polarity and about 6.3 dB with alternate inversion: its narrow, high-Q staggered channels cross over far down their skirts, where the phase relationship is no longer clean anti-phase, and the polarity choice matters much less.

4.5.3 What the designers said

The ETI vocoder (Richard Becker for Powertran, ETI September 1980) explains the reasoning in its “Holy Responses” section: “Alternate channel outputs are inverted since there is a change in phase as a signal is swept through the resonant frequency of the filter. Therefore, at the midpoint between adjacent bands phase cancellation will occur producing deep holes in the overall frequency response. By having adjacent channels outputs inverted with respect to each other there is addition instead of subtraction at the midpoints.” The EM-26 does the same with its note 4 wiring (§4).

The PAiA 6710 does something related for a different reason: “The eight VCA outputs are alternately sent to two separate mixers (IC2A and IC2B), thus providing true stereo effects that do not cancel when recombined back into mono” (PAiA 6710 manual). The VoIS assigns each of its eighteen channels to the left or right output by internal jumpers; its calibration procedure assumes the 500 Hz channel on the left and the 640 Hz channel on the right, i.e. neighbours on opposite sides (VoIS Assembly and Tuning Guide, §17.1).

Note: Alternate inversion only matters where bands overlap. If a vocoder is run with only a few channels open — a single formant region, say — polarity makes no difference. It matters most for broadband carriers and for “all channels open” settings such as silence bridging (Vol 5 §6) and the frozen formant-filter mode (Vol 5 §7).

4.5.4 Feedback and live use

The same phase shifts make a vocoder prone to acoustic feedback on stage. Elektor (September 1980) warned that “Feedback sensitivity happens to be another drawback of the vocoder, as a result of the phase shifts in ranges where the synthesizer filters overlap,” and suggested a directional microphone spoken into from close range, or two identical microphones in anti-phase with the performer close to one of them.

4.6 Calibrating the multiplier’s starting point

Ten VCAs fed by ten followers will not all start opening at the same control voltage: OTA bias characteristics and converter offsets vary. Elektor’s second preset per module (P4) sets “the initial point of the control characteristic to the same level for all modules”: apply white noise to the carrier input, feed about 200 mV DC to the module’s control input (from the +5 V rail through a 22 kΩ and 1 kΩ divider, a 23:1 ratio giving 217 mV), turn the module’s level control to maximum, and adjust P4 “so that an output signal just appears at the main output” (Elektor, February 1980). The later setting-up article gives a refined method with a sine at each channel’s frequency and about 10 V p-p at the synthesis filter output, adjusting P4 to “the point where the output signal just stops decreasing” (September 1980). Either way the aim is a common threshold, so that a flat speech spectrum opens all bands equally.

MFOS does the equivalent with its per-channel analysis gain trimmers (Vol 3 §7.1), matching each VCA’s output envelope to its analysis filter’s input by eye on an oscilloscope.

4.7 Other multipliers

4.7.1 The compander chip: PAiA 6710

The PAiA 6710 uses NE571 compander chips, each of which contains two channels of full-wave rectifier and variable-gain cell. Anderton: “A single NE571 provides the VCA and envelope follower circuits for two channels, thus saving cost, cutting the parts count, and giving improved performance since the VCAs and envelope followers are closely matched. Interestingly, the 571 was designed for telecommunications devices, not vocoding” (PAiA 6710 manual). In each half of the chip the rectifier serves an analysis band and the gain cell the matching synthesis band, so one integrated circuit replaces the followers and VCAs of two channels.

4.7.2 Switching (PWM) multiplication: VoIS

The VoIS channel board’s bill of materials lists two TL074 quad op-amps and a CD4053 triple analogue switch per channel (VoIS BOM, “Common materials for the 18 channel filter boards”); the output board carries a PWM generator whose calibration calls for a triangle of about 2 V at about 80 kHz and a 0–12 V rectangular output at about 80 kHz and 50 % duty with no signal, and whose falling edge “wobbles” with the input amplitude (Assembly and Tuning Guide, §10.3). The channel boards have test points labelled CHOP. The guide itself names the result a “PWM–based multiplier” in a figure caption (Fig. 40, §11): a pulse-width-modulated switching multiplier, in which a high-frequency switch, its duty cycle set by a control signal, chops the carrier band, and the average of the chopped signal is proportional to duty × carrier. The role of the CD4053 as the chopping switch is inferred from the BOM and the CHOP test points; the guide does not describe the circuit’s theory, so how the VoIS assigns duty cycle to each channel’s envelope is not stated here.

The attraction of switching multiplication is linearity: an analogue switch either passes the signal or does not, so the product is linear in the carrier regardless of level, with no tanh law to respect. The costs are switching artefacts at the PWM frequency and its harmonics — at 80 kHz far above audio, but requiring filtering — and charge injection from the switch, which is a form of breakthrough; hence the CHOP trimmers.

4.7.3 Other options

  • Four-quadrant analogue multipliers (the Gilbert cell, as in the MC1495 family) multiply two bipolar signals and are naturally balanced against breakthrough. They are more than a vocoder needs and noisier than a well-run OTA.
  • Dedicated VCA chips made for audio mixing and synthesizers, with exponential (dB-linear) control laws and low noise, are an obvious modern choice; an exponential law needs a log converter ahead of it if the vocoder is to behave linearly.
  • JFET voltage-controlled resistors are cheap but non-linear above a few tens of millivolts.
  • In digital vocoders the multiplier is a single instruction (Vol 7 §1).

4.8 Gain staging and noise

4.8.1 Levels through one channel

Tracing nominal levels through an MFOS channel from Wilson’s notes gives a picture of where headroom and noise live:

Table 2 — Tracing nominal levels through an MFOS channel from Wilson's notes gives a picture of where headroom and noise live

PointLevelSource
Line input1–5 V p-pMFOS documentation
Input buffer output (U1-B)“about ±3V to ±5V Peak to peak”MFOS
Filter output”in the neighborhood of 5V P-P”MFOS
OTA input2.5 V / 101 = 24.8 mV peakcalculated
VCA output (buffer)“as high as ±3V or so”, offset −150 to −250 mVMFOS
Output±1 V to ±5 V depending on input levelsMFOS

The weakest point is the OTA input: a signal of tens of millivolts in a circuit with several volts elsewhere. Any noise picked up after the 100:1 attenuator is effectively amplified a hundredfold relative to the signal, which is one reason Wilson recommends coax for the panel wiring with “ONLY GROUND ONE END OF THE CABLE.”

4.8.2 Noise adds across channels

Each channel’s residual output noise — op-amp noise, OTA noise, resistor noise — is independent of the others, so N channels add in power:

total noise = single-channel noise + 10 log₁₀ N dB.

Ten channels are 10 dB noisier than one; eighteen are 12.6 dB noisier. Wanted signal does not add the same way: a voice usually excites only a few bands strongly at once. So a vocoder with many channels needs quieter channels, a VCA that closes fully, or a threshold (the PAiA Threshold control, Vol 3 §7.3) to keep its silence quiet. The EM-26 specifies a signal-to-(hum + noise) ratio of at least 60 dB in pause (manual §3); the PAiA 6710 specifies “typically greater than 60 dB.”

4.8.3 The output stage

The summing amplifier is also where other signals join the output:

  • Dry modulator — MFOS’s Control Mix-In, which Wilson suggests can help intelligibility when singing in unison with the instrument.
  • Dry carrier — MFOS’s Audio Mix-In; with the internal oscillator, Wilson notes, “the raw and vocoded signals experience phase cancellations that vary as the Audio Mix-In level is changed.”
  • HF bypass — Elektor’s P17 path into the summing amplifier’s second input K (Vol 5 §4).
  • Noise — MFOS’s sibilance noise enters the top channel’s VCA instead (Vol 5 §3).

Elektor specified its line output at about 700–770 mV with a very low output impedance, “due to the negative feedback.”

4.9 Summary

Table 3 — 9. Summary

ItemRuleReal examples
OTA lawI_out = I_ABC tanh(V_in/2V_T); g_m ≈ 19.3 I_ABCCA3080 (Elektor), LM13700 (MFOS)
OTA input≤ ~20 mV peak for ≤ ~1 % third harmonicElektor 15.9 mV (÷314); MFOS 24.8 mV (÷101)
V→I converterop-amp + PNP, I = V/RMFOS 43 kΩ (≈ 100 µA at −4.3 V); Elektor 4.7 kΩ + threshold preset
Breakthrough∝ V_os × I_ABC; trim and/or AC-coupleElektor ≤ 5 mV p-p, 1 OTA in 5; MFOS 16–159 Hz coupling high-passes
Polarityinvert alternate channels for 4th-order banks; not for 2nd-orderETI, EM-26 (note 4); MFOS same polarity
Noise+10 log₁₀ N dB for N channels≥ 60 dB S/N (EM-26, PAiA specs)

The analysis and synthesis halves are now complete. Vol 5 deals with the sounds that the scheme handles worst.

Comments (0)

  1. Loading…

Comments are held for moderation — nothing appears until approved.