"Gain-Staging"

with industry Pro, Nick Batzdorf

Moderators: mdc, admin, TAXIstaff

User avatar
donzo
Newbie
Newbie
Posts: 24
Joined: Sat Aug 15, 2009 12:46 pm
Gender: Male

"Gain-Staging"

Post by donzo »

Hi all,

At the risk of sounding like a rookie (Which I am :mrgreen: ), I was wondering if you all could elaborate on "Gain-Staging". I've seen the term used in this forum many times and I think I might even know what it means, but I'd love to read some of the "forum regulars" in-depth explainations on this practice.

Thanx, Don

p.s. When are they going to put some kind of spel chek in the "New Topic" page?
PC, XP Pro, Version 2002, Service Pack 2
Intel(R)
Pentium(R) 4 CPU 3.00 GHz
3.00 GHz 1.87 GB of RAM
M-Audio Fast Track Ultra
Edirol MA-10D Monitors
Steinburg Nuendo
User avatar
mojobone
King of the World
King of the World
Posts: 11843
Joined: Sat May 17, 2008 11:20 pm
Gender: Male
Location: Up in Indiana, where the tall corn grows

Re: "Gain-Staging"

Post by mojobone »

Gain staging is a concept; a way of thinking about signal routing in an audio system (though it can apply to non-audio systems, as well; antenna gain in a video system, for instance) The basic idea is to think about what happens to a signal at each stage of a long chain of processors between any two transducers (a transducer is (usually) a microphone diaphragm or a speaker cone; something that converts the sound waves we hear at one end of the chain into cyclical electrical patterns that we can either transmit over a given distance or gleefully mangle, and also something that converts those hopefully un-mangled electrical waves at the other end into a sound that we can hear) A system is said to be properly gain-staged when no signal processor overdrives the next link in the chain. Overdrive is what happens when an amplifier is fed more signal level than it can address in a linear fashion; linear, in this case, means that the output signal more or less closely resembles the input signal. For that to happen, there are some limits, in terms of impedance and level, that each gain stage needs to "see" from the prior stage, as op-amps (operational amplifiers) must be designed within a tolerance. This, since no perfect amplifier currently exists, and if it did, Donald Trump couldn't afford it. You could think of your series of successive gainstages as a series of slightly tilted water buckets, each flowing into the next; turn one bucket too far, and the next bucket overflows. The trick is to get all the water from one end to the other.

This sort of thing comes up a bit less often in these days of DAWs, when many folks do their recording sans mixing desk; an analog mixing desk provides tons of options for signal routing and many, many stages where gain can be added to or extracted from a given audio signal. A typical DAW interface, by contrast, only has one gain knob per channel, if any. (though there are still plenty of gain stages for your signal to pass through in the digital realm) Another common scenario where gain-staging comes into play is in the common stompbox chain between a guitar and an amplifier, though we might be a bit less rigorous about linearity in this instance, because guitarists, as a class of persons, tend to be bored by linearity. (hence the chain of stompboxes between guitar and amp, when the amp itself is capable of producing a great deal of nonlinearity, and at a very loud volume, too)

Any knob you can turn on any device that passes signal which can either raise or lower the signal level is a gain stage. So a volume knob is a no-brainer, but there are other kinds of signal processor that can also affect gain, whether by knob, slider, button or encoder wheel. These include, but are not limited to compressors, equalizers, sends, auxes, almost anything with a fader or a knob. Compressors are actually meant to reduce gain, and in some very complicated ways, but at the end of the chain, before your signal leaves the box, there's a a knob for makeup gain! Equalizers also affect gain, but only in specific portions of the frequency spectrum. (a passive EQ is one that only subtracts gain, an active EQ can also add)

At the end of the day, thinking about gain-staging and signal flow is essential to troubleshooting an audio system when something is distorted (nonlinear) and you need to know why, or better yet, where.
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
User avatar
mazz
Total Pro
Total Pro
Posts: 8411
Joined: Sat Nov 11, 2006 1:51 pm
Gender: Male
Location: San Francisco

Re: "Gain-Staging"

Post by mazz »

Mojo's explanation is excellent and detailed. For another way of looking at it, here's yet another perspective:

An input that is designed to accept a line level signal (a hot signal from, for instance, a keyboard) is less sensitive than an input that is designed to accept a small signal from, for instance a microphone or a guitar pickup (a passive pickup, not an active (battery powered pickup). So understanding that basic information is really the first step in smart gain staging. Plugging a mic into a line level input is taking a very small signal from the mic and requires the input to be turned way up in order to hear anything, thus boosting all sorts of noise from the circuitry. Not the best approach. Plugging a hot output into a mic input will give the opposite results, usually a very distorted signal, and usually not a desirable distortion either!

So match the output to the input, then make sure that you adjust the input gain (sometimes called "trim") such that your signal is in the sweet spot: not too hot (distortion) and not too low (noise). The idea is to get a nice signal while minimizing the noise (the term "signal to noise ratio" is the operative one here).

Then at every place down the line where there's a possibility to boost or cut the signal in some way such as a fader, EQ, compressor, etc., it becomes necessary to do the same signal to noise ratio dance to keep the signal healthy and happy and clean all the way to the speakers and eventually your ears.

Every amplification and attenuation point (again, EQ, fader, compressor, etc.) is a gain stage, and the idea is to optimize the amount of signal present at each one of these points in order to keep the signal to noise ratio at a good number (way more signal than noise is good! The signal hopefully "swamps" the noise!). Bad gain staging means something has to be turned up or down way too much in order much to make the signal strong enough to survive the next stage it needs to go through, thus making the noise of that stage louder. Noise from several different amplification sources is additive. Notice that the term "noise" is mentioned a lot. It's a key to good gain staging to recognize what types of noise one is hearing: distortion or circuit noises, hums, buzzes, etc.

Several different ways of saying the same things, basically. I'm sure I was redundant and also repeated myself, but it's good to look at it from different angles. Everyone learns differently.

Hope this helps!!

Mazz
Evocative Music For Media

imagine if John Williams and Trent Reznor met at Bernard Hermann's for lunch and Brian Eno was the head chef!
http://www.johnmazzei.com
http://www.taxi.com/johnmazzei

it's not the gear, it's the ear!
User avatar
donzo
Newbie
Newbie
Posts: 24
Joined: Sat Aug 15, 2009 12:46 pm
Gender: Male

Re: "Gain-Staging"

Post by donzo »

[quote Mojo] You could think of your series of successive gainstages as a series of slightly tilted water buckets, each flowing into the next; turn one bucket too far, and the next bucket overflows. The trick is to get all the water from one end to the other.[quote]

Thank you Mojo, nice analogy! :D

Pretty much what I've been doing with respect to signal(s) into my audio interface. As far as inside the DAW mixer, does the same practice apply? (i.e. From audio channel(s) to fx/group channel(s) to master buss)

Thanx again Mojo and Mazz for the detailed explainations.

Don
PC, XP Pro, Version 2002, Service Pack 2
Intel(R)
Pentium(R) 4 CPU 3.00 GHz
3.00 GHz 1.87 GB of RAM
M-Audio Fast Track Ultra
Edirol MA-10D Monitors
Steinburg Nuendo
User avatar
mojobone
King of the World
King of the World
Posts: 11843
Joined: Sat May 17, 2008 11:20 pm
Gender: Male
Location: Up in Indiana, where the tall corn grows

Re: "Gain-Staging"

Post by mojobone »

Yes, the same rules apply within the digital realm, post AD converter. The major difference is that, while you still need to pay attention to signal to noise ratio and proper gain staging, you no longer need to worry about impedance matching, which is a can of analog worms I tried not to open in my original post; like venturi tubes or indoor plumbing, it's simple in operation, but rather difficult to explain. (thanks, Mazz, for the kind words and giving a more complete picture) :D
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
User avatar
donzo
Newbie
Newbie
Posts: 24
Joined: Sat Aug 15, 2009 12:46 pm
Gender: Male

Re: "Gain-Staging"

Post by donzo »

Mojo, interesting how you used the term "Venturi tube"

Mazz, any relation to Mazzei Injector Company in Bakersfield, Ca.?
PC, XP Pro, Version 2002, Service Pack 2
Intel(R)
Pentium(R) 4 CPU 3.00 GHz
3.00 GHz 1.87 GB of RAM
M-Audio Fast Track Ultra
Edirol MA-10D Monitors
Steinburg Nuendo