When to dither

with industry Pro, Nick Batzdorf

Moderators: mdc, admin, TAXIstaff

jonathansorensen
Impressive
Impressive
Posts: 410
Joined: Mon Nov 12, 2007 5:05 pm
Gender: Male
Location: Santa Monica

When to dither

Post by jonathansorensen »

Hi All,

I recently went to a mastering seminar in LA with Ronan Murphy (Home Recording Boot Camp) and he mentioned that when mastering, he busses and writes in real time to a second track. I started thinking about my own process and realized that when I'm mastering, I put my effects on the master stereo buss, get everything sounding the way I want and then hit export with the dither set to 16bit. So essentially my system is writing a master track with all effects, etc. and dithering it down at the same time. Though I have no idea, this just sounds like a less careful method.

So finally the question, when do you dither and how serious are you about where that happens? What system or software do you trust to do the work?


Thanks for any and all comments,
Best,
Jon
User avatar
davewalton
Serious Musician
Serious Musician
Posts: 4172
Joined: Wed Feb 11, 2004 6:57 pm
Location: Cape Girardeau, Missouri

Re: When to dither

Post by davewalton »

I'm kind of in a dither about that too. :lol: (sorry... couldn't resist)

I'm only a "pretend" engineer in that I only know about the buttons and such on my specific setup. What I do is to export at the original 24bit 48khz (or 44.1 khz). I then give it a little tweak with T-Racks. I don't know about engneering or mastering (like a real engineer would) so I rely on some basic presets (depending on the genre) in T-Racks to give me a sound that my ears like. T-Racks then processes (and dithers) into a 16-bit file if I'm going to 16 bit or just straight to 24bit if I'm delivering that way.

I didn't understand what you said about what Murphy does. Why does he do the bussing/writing to a second track?
User avatar
mazz
Total Pro
Total Pro
Posts: 8411
Joined: Sat Nov 11, 2006 1:51 pm
Gender: Male
Location: San Francisco

Re: When to dither

Post by mazz »

I would be willing to bet that Ronan is running his mix out through some extra analog processing before converting back to digital to mix to another track. He probably has some high end analog gear and has decided that the sound he gets going out through that overrides any possible losses incurred by an extra D/A and A/D conversion. Converters are so much better now that it's not nearly the issue it was back in the bad old days of 16 bit converters that were really no better than 14 bit.

I think the way you are doing it is just fine. As I understand it, the reason for dithering in the first place is when going from 24 to 16 bits, low level information can get lost down in the lowest bits, so dither injects a very tiny amount of noise into the signal in order to keep those bits activated (basically always on), so that the low level signals don't fall in between bits and cause the bits to turn off and on, causing a different kind of undesirable noise, noticeable on very soft reverb tails, for instance.

I would suggest mixing to the highest bit resolution possible, and even as Dave does, to 48K. Then get a good conversion program and do a la carte conversion as requested by the clients. At the very least you won't have to go back to your DAW session, saving time loading, etc., and chances are, the conversion program has a dither algorithm in it already.

Not sure if that helped, I hope a little bit.

Say Hi to Ronan next time you see him, he's a cool guy!

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
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: When to dither

Post by mojobone »

The rule for mastering is dither once, dither last. I only dither when reducing the bit depth, not when downsampling, and only for final output to CD format, these days; premasters for duplication depend on what the engineer or plant wants, otherwise it's the mastering engineer's problem, and he has more flavors of dither, anyway. TV and film stuff is delivered per client request.
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
User avatar
musicliner
Impressive
Impressive
Posts: 178
Joined: Wed Mar 18, 2009 9:42 pm
Gender: Male
Location: Toronto, Canada

Re: When to dither

Post by musicliner »

I can only second to Mazz and Mojobone. They've made some very good points, as usually.

Your current practice is what many people do. It's quick and can sound OK.

Using a dedicated stereo audio editor (e.g. Steinberg Wavelab, Sony Sound Forge, etc.) though, can give you analytical tools and dithering options that standard DAWs or plugins a la T-Racks simply don't have.

For critical material I still use Cool Edit Pro (out of market for many years) and the results can be significantly better.

Here are some considerations from CEP's Help file:

>>>

"If Dithering is not enabled, Cool Edit Pro truncates instead (bits that are not used are simply chopped off and discarded). This gives a "crackly" effect that fades in and out on very quiet audio passages. Use Dither to reduce noise and distortion to figures below their current levels through the addition of small amounts of white noise (a random signal that includes all the frequencies across the entire audio spectrum). Although a small amount of noise is introduced into the circuit, the result is far preferable to the increased distortion that you would otherwise be listening to in low-level signals. When converting to lower resolutions, dithering allows you to hear sounds that would otherwise be masked by the noise and distortion limits of 8-bit audio (or quieter than the 16-bit limit provides when converting from 32-bit.) If Dither isn't checked, quiet audio passages will just fade in and out of a disruptive, "choppy" sound that resembles falling rain or static. Whether or not dithering is used depends on the audio that's being converted and, of course, your preferences."

Dither Depth (bits) sets the bit amount of Dither to be applied. Generally, values of 0.2 to 0.7 give the best results without adding too much noise. If Dithering is disabled, Cool Edit Pro simply truncates the data, which can give a "crackly" effect that fades in and out on very quiet audio. With about 0.2 bits of dithering or more, you can hear a soft constant hiss in the background instead. Note, however, that as this value is lowered, other unwanted harmonic distortion noise will appear. You can usually get away with lower values for the Dither Depth when you use noise shaping curves.

Probability Distribution Function

The "Probability Distribution Function" controls how the dithered noise is distributed away from the original audio sample value. A rectangular function means there is an equal chance that the noise value added will lie anywhere between +1 and -1 (i.e. the likelihood of a value of -0.8 being chosen is the same as that of 0.2, or 0.3, or any value between -1 and +1). The Triangular function chooses random numbers that are generally closer to 0 than to the edges -1 or +1 (i.e. the chance of 0 being chosen is twice as great as the chance of choosing 0.5 or -0.5). All dithering distribution functions can linearize the quantization noise, meaning that the noise heard does not depend on the frequency of the dithered audio, thus no harmonic distortion appears. The SNR Loss is measured against the undithered case. If modulation is present, the audible noise floor will rise and fall depending on the amplitude of the signal, so generally one doesn't want this either.

Generally, a Triangular p.d.f. function is a wise choice, because it gives the best tradeoff between SNR, distortion, and noise modulation. The shaped versions force the noise to be skewed so that more high frequency noise and less low frequency noise exists.

Noise Shaping

The various noise shaping curves determine the placement when moving noise to different frequencies. The same amount of noise overall is present, but you can choose less noise to be placed at one frequency at the expense of placing more noise at another. So different curves will result in different types of background noise. The type of curve to use depends on the source audio, final sample rate, and bit resolution. By introducing noise shaping, you may be able to get away with lower Dither Depths to reduce the overall background noise level, without introducing much unwanted harmonic noise."


Cheers,
George
jonathansorensen
Impressive
Impressive
Posts: 410
Joined: Mon Nov 12, 2007 5:05 pm
Gender: Male
Location: Santa Monica

Re: When to dither

Post by jonathansorensen »

I don't want to speak for Ronan but I believe his motivation was that some guys with golden ears say that writing to a second track in real time gets better sonic quality.

The reason for my question was: I was wondering if I should be mastering my track with compressors, limiters, light verb, etc. and keeping it at 44.1 24 bit (or even 32). Then with the master track already complete, doing one step of dithering it down to 16 bit for audio play.

It's probably one of those questions only a true design engineer could answer and the answer is probably as varied as the different types of software you can use, but it sounds like everyone is saying, it isn't a problem. I think I'm going to try A/Bing some tracks this week. I'll get back if I hear anything . . . whihoo . . an excuse to fiddle.

Thanks all,
Jon
Len911
Total Pro
Total Pro
Posts: 5351
Joined: Mon Dec 07, 2009 11:13 pm
Gender: Male
Location: Peculiar, MO

Re: When to dither

Post by Len911 »

Maybe this will help. I haven't studied it, that extensively. It is from the oxford limiter manual. I have played with the settings, they have about 5 along with different percentages. I probably should find a default setting and leave it,lol!



7. Dither and Noise Shaping.
The finite mathematical precision provided by digital audio systems and the effects of dither have been a source of
confusion in the audio community for some years. Such discussion may lead to possible misconceptions, which could
prevent the user from achieving maximum performance from systems in use. Therefore the dithering options provided
in the Limiter warrant some prior explanation.
7.1. Conventional Dither.
In both 24bit and 16bit output word length selections, high pass TPDF (triangular probability density function)
dithering is applied to the output of the plug-in. Since any signal related error caused by finite word length limitation is
turned into constant random noise with no relation to the signal itself, such dithering provides complete removal of
harmonic distortion due to precision limits, which are an inescapable result of any numerical signal representation.
Dithering also suppresses any possibility that the programme will suffer loss of harmonic signal resolution due to word
length restriction. The following plots illustrate this in action.
The first graph shows the damaged spectral result of passing low-level 1KHz sine wave through a 16 bit undithered
truncation. The next plot shows the exact same signal and truncation to 16 bits but with the HP TPDF dither applied.

graphs

This shows that dither turns a quantised numerical signal conduit into the equivalent of a naturally continuous (unquantised) system, which exhibits a finite signal to noise ratio with no practical limit to harmonic signal resolution. In
other words the inescapable presence of quantisation in numerical systems does not forcibly lead to ‘discontinuity’ or
‘resolution loss’ in the signal. Misunderstandings of this fact underpin many of the most damaging misconceptions
surrounding digital audio systems. It can also be deduced from the above plots that any undithered digital
representation of an audio signal is effectively illegal.

7.2. Noise Shaping dither.
If for some reason SNR figures of 93dB at 16bits (or 143dB at 24bits) prove insufficient, noise shaping can provide an
apparent increase in SNR, but there are some potentially hidden costs. Noise shaped dithering is a mechanism that aims
to reduce the perceived loudness of the noise of a dithered signal by either forcing the spectrum of the noise out of the
audible range or placing it into frequency ranges to which we are less sensitive. In this way the noise at very low levels
may be reduced and even lost entirely if they are at the limit of our hearing within ambient noise conditions. The
following plot illustrates this process.
graphs
It can be seen that the noise has been substantially reduced in the regions up to around 8KHz where we are most
sensitive, at the expense of extra noise energy in the higher ranges above 10KHz at which we are less sensitive. Such
processing can have a dramatic effect on the perceived intrusion of low-level noise.
However as is always the case, one cannot get something for nothing and it can be seen from the above plot that the
total noise power across the whole range must remain constant to satisfy the dithering requirement. This means the
noise level necessarily increases in some ranges of the spectrum. A level increase anywhere in the spectrum must be
accommodated by an increase in total peak noise level. The following plot illustrates this in action with the previous
test conditions.
graphs
The first plot shows a sample value plot of the conventional TPDF dithered signal. The second shows the increase in
values caused by the application of the type1 noise shaping at 100%. Focussing the dither energy into a more restricted
range than would naturally occur causes the level to increase. From the effective level values highlighted in the plots it can be seen that the application of noise shaping has increased
the effective noise level from around –93dBr to –80dBr, an increase of roughly 13dB.
From this it can be understood that the design of suitable noise shaping frequency curve is a trade off between the
perceived loudness of the noise under certain conditions and the increase in overall level of the dither signal, much of
this trade off relies on what we can hear (psycho-acoustics). Significant research has been carried out over the years
into various approaches to this issue and several accepted curves are in use around the industry.
The Oxford Limiter includes 4 noise-shaping curves. Types 1 and 3 are fifth order and types 2 and 4 are third order
designs representing a varied set of trade-offs to suit most programme types, as illustrated below.
graphs
Whilst it is understood that the selection of noise shaping type is largely a matter of user preference, generally speaking
types 1 and 2 produce the most dramatic reduction in overall noise loudness, with type 1 being the most effective of all.
Types 3 and 4 provide gentler responses, which under some circumstances may produce less intrusive sounding
spectrums, at the expense of higher audible residual noise. Type 3 also provides greater noise attenuation in the range
between 10KHz and 16KHz at the expense of higher noise levels in the mid ranges.
7.3. Noise shaping Depth control.
From the previous section it can be seen that noise shaping can potentially cause unwanted effects in equipment and
processes down line, particularly if the programme is to be further modified, such as in mastering situations. Some
unwanted effects may include:
• Marked increase in noise levels if the file is not transferred intact bit for bit, (i.e. if further processing is done).
• Premature meter readings in silence.
• Premature peak level over loads (as increased dither levels add to peak signal value).
• Unwanted low-level behaviour in dynamics processing.
• Disturbance caused to data reduction encoding processes such as MP3, WMA etc.
• Increased audibility (unmasking) of various errors that may occur in play-out systems.
Generally speaking high levels of noise shaping renders a signal that is more fragile. Almost any change to the
produced audio file after noise shaping could potentially result in unwanted effects.
For these reasons the depth control is provided to put you in charge of the degree to which noise shaping is applied.
When any of the noise shape curves are selected the depth control varies the degree of noise shaping from 0% to 100%.
At 0% the dither is conventional HP TPDF dither (as if noise shaping were not selected), at 100% full noise shaping is
applied. All control positions within the range produce legal proportions of dither.
The action of the depth control is illustrated below with type 1 selected.
There is no technical (or philosophical) advantage to noise shaping above and beyond that which can be actually heard
directly. Therefore the decision to use noise shaping (and to what extent) is basically determined by what might actually
be heard in practice. If conventional TPDF dither provides sufficient audible dynamic range such that noise never
intrudes within the programme, it is safest to avoid noise-shaping altogether.
Because of the potential fragility of a noise shaped signal, it is better to ensure that it is carried out only at the final
stages of mastering, immediately prior to release. If your mix is not already a final master, it is technically preferable to
send a TPDF dithered 24bit file to mastering rather than a 16bit noise shaped file.
Another important factor is that the effectiveness of psycho-acoustic noise shaping relies heavily on our sensitivity to
noise spectra at the threshold of hearing. Therefore if noise shaped dither actually gets to be heard directly it will
often sound quite strange and intrusive and may detract from the listener’s experience of the programme. Therefore the
most effective and safest approach is to apply noise shaping at the minimum amount necessary to render the noise
inaudible within the conditions the programme is destined to be auditioned.
https://soundcloud.com/huck-sawyer-finn
Not an expert on contemporary music
Len911
Total Pro
Total Pro
Posts: 5351
Joined: Mon Dec 07, 2009 11:13 pm
Gender: Male
Location: Peculiar, MO

Re: When to dither

Post by Len911 »

"The reason for my question was: I was wondering if I should be mastering my track with compressors, limiters, light verb, etc. and keeping it at 44.1 24 bit (or even 32). Then with the master track already complete, doing one step of dithering it down to 16 bit for audio play."

Yes, I would. I would keep it all 32bit floating, and only dither if necessary at final stage.
https://soundcloud.com/huck-sawyer-finn
Not an expert on contemporary music
User avatar
Silversun
Impressive
Impressive
Posts: 355
Joined: Mon Jun 27, 2011 10:40 pm
Gender: Male

Re: When to dither

Post by Silversun »

The general rule is to dither once at the very end of the process.The final file that get written for the cd is the only one that should have been dithered.

It should be noted therefore also that if you're getting stuff mastered, then send the mastering engineer a high res file (ie 24bit) and let them do the dither as part of the mastering process. You should also leave off your master buss compression/limiting and give them them 2/3 db of headroom so they can wave their magic jazz hands at it :)
jonathansorensen
Impressive
Impressive
Posts: 410
Joined: Mon Nov 12, 2007 5:05 pm
Gender: Male
Location: Santa Monica

Re: When to dither

Post by jonathansorensen »

Thanks everyone. That answers my question. I should definitely be dithering as the very last step.

I'm going to try my new process this week.

js