Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

with industry Pro, Nick Batzdorf

Moderators: mdc, admin, TAXIstaff

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

Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by mojobone »

*For the origins of this discussion, please read http://forums.taxi.com/topic27006.html

I'll attempt to briefly explain why filter design within a converter is more important than the sample rate and if I can manage it briefly, why jitter is more important in a DAC than in an ADC. I'll be citing portions of Bob Katz' mighty treatise Mastering Audio, mainly, his conclusions; if you want to read about his methods and the data/evidence, do yourself the huge favor of buying it. It'll make you a better engineer and a better person, or at least the former, heh. You may want to start with a primer on how PCM digital sampling works The sample rate determines the Nyquist cutoff frequency, which is exactly one half the sample rate in Hz (cycles per second)

Q: If we can't hear anything past 20kHz, why do higher sample rates (88.2kHz, 96kHz) sound better? Shouldn't a Sampling Rate of 40kHz be enough?

A: Dr. Katz believes that this common perception (as demonstrated in double blind listening tests) is caused by the proper or improper design of filters at several stages of the process.
"Nyquist, Sampling And Aliasing

Why Filter On ADC: Sampling, without filtering, will include ALL signals from the baseband, [human hearing range, or 20Hz-20kHz-Mojo] along with out of band stuff you DON'T want, all the way out to infinity. This folds down, (aliases) to the baseband, producing alias distortion, which sounds a lot like ring modulation, especially obvious on instruments with lots of high frequency harmonics such as trumpets. This is why an anti-alias filter is required whenever audio is sampled

Why Filter On DAC: The sampled audio stream which is played back contains the baseband and EVERY image of that baseband, all the way out to infinite frequency. That's why an anti-image filter is required when converting from sampled audio to continuous audio."
Did you get that? It basically explains why you need the filters, essentially it's to prevent a couple of particular kinds of digital noise. Without delving too deeply into the details of how oversampling works, what you need to know is that it requires a few more of these filters, which are basically lowpass filters. I'll let Bob take it from here:
"Filters of lower quality or which are unoptimized, exhibit tradeoffs such as low calculation resolution, higher distortion, [defined here as non-linearity-Mojo] ripple, ringing and potential for aliasing. Aliasing is a form of distortion which occurs if the filter doesn't have enough attenuation in the stop band. To avoid aliasing, we must use either a steep filter or a gentle filter with a higher cutoff frequency. (which requires a higher sample rate) [my italics-Mojo] It is harder to engineer a steep filter with low ripple, but it is perfectly doable; this can be achieved with a large number of filter taps. For the same number of taps, a more gentle filter will have less ripple. Ripple in the passband should be less than 0.1dB."
Bob goes on to explain how oversampling AD conversion uses higher internal sampling-rates as high as 5.6448MHz (!) and noise shaping (kind of like dither) to move the converter's noise out of the audible band, and describes how a decimator (which requires an anti-aliasing filter of its own) is used to downsample back to good ol' vanilla 44.1, or wherever we started. Similarly, an oversampling DA converter needs an additional anti-image filter. Now, here's the meat of the matter:
"...it [the anti-image filter] too must have low distortion and ripple to sound good. While this was once costly to implement, the price of silicon is now infinitesimal compared to the benefits of good filtering. Still, the filters in most converters made today are compromised. [Bob's emphasis] There is no longer a reason for this practice-chipset manufacturers should begin doing it right."
So what does all this mean? I'll skip a few paragraphs, and again quote the good doctor:
"Let's be logical: since the human ear cannot hear above 20kHz, then any artifacts we are hearing must be within the audible band. Audio researcher Jim Johnston, who knows as much about the time-domain response of the human ear as anyone, has shown that steep low-pass filters at or near the high-frequency limit of the human ear interact with the cochlear filter, [my emphasis] creating pre-echoes, which the ear interprets as a loss of transient response, obscuring the clarity of the sound. [me, again] Jim has experimentally calculated that the minimum sample rate that would support a Nyquist filter gentle enough to elude the ear is 50kHz, so if he's right, then the 48kHz professional [sampling] rate is nearly sufficient."
I would add that unless we're making records for dogs and children, it's pretty much more than sufficient; there's just not that much stuff up there that we really need to hear in order to enjoy the music. I hope that didn't make you as tired reading it as it tired me to write it; I'll return with a few too many words about jitter, and I'll try to answer your questions.
Last edited by mojobone on Thu Mar 10, 2011 11:26 pm, edited 1 time in total.
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
ernstinen
Total Pro
Total Pro
Posts: 5658
Joined: Tue Feb 03, 2004 1:59 am
Gender: Male
Location: Los Angeles

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by ernstinen »

mojobone wrote:* Jim has experimentally calculated that the minimum sample rate that would support a Nyquist filter gentle enough to elude the ear is 50Hz, so if he's right, then the 48kHz professional [sampling] rate is nearly sufficient."
Mojo, that makes sense, but according to Bob Moog, who also printed up some genius-style articles on this subject, he's thinking way higher.

First, let's make sure that the Nyquist filter @ 50 Hz really means 50 kHz, correct? That makes sense, although Moog believed the human ear can PERCEIVE sounds above 30-40kHz, which would make the sample rate 60-80 kHz!

As I've stated before, I've rented George Massenberg's incredible analog EQ which goes up to 26kHz. Y'all have doubted me, but I swear to God I can hear the 26kHz on a mix! Come to my studio, and we'll rent one and listen. :mrgreen: --- But anyway, if you double the 26x2, you get a 52 khz sample rate. --- Moog SWORE that analog tape can go up to 40-50 kHz, so the magic sampling number for the human ear is between 80kHz and 100kHz.

Personally, I believe bit rate trumps sampling rate. I've experimented with this extensively, with the ol' "keys on a chain" to check out the high end and clarity. I record 24/96 right now, but that may change the more I learn about this stuff!

All My Best,

Ern 8-) :)
User avatar
thokus
Serious Musician
Serious Musician
Posts: 1171
Joined: Sun Feb 21, 2010 10:14 pm
Gender: Male
Location: Altamonte Springs Florida

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by thokus »

What the hell. No wonder I suck at this .. I just try to make it sound right .. usually fail.. And This is the reason why .. I dont know what the heck I'M doing... What does all this mean as far as making a nice clear crisp recording where all the parts are separated nicely.. Do I need to understand all this to make it happen??? Maybe I'll go back to weaving baskets ..
Tom
User avatar
Casey H
King of the World
King of the World
Posts: 15042
Joined: Tue Jan 27, 2004 10:22 pm
Location: Philadelphia, PA

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by Casey H »

thokus wrote:What the hell. No wonder I suck at this .. I just try to make it sound right .. usually fail.. And This is the reason why .. I dont know what the heck I'M doing... What does all this mean as far as making a nice clear crisp recording where all the parts are separated nicely.. Do I need to understand all this to make it happen??? Maybe I'll go back to weaving baskets ..
Tom
Actually, you don't need to know this level of detail at all to make great recordings (not that it is not interesting discussion :ugeek: )... Just general guidelines as to what settings to use when you record and mix down. You can make great recordings at 16 bit, 44.1K as has been done for years, **for example**. No one is out there listening to a track and saying, "nice track but if you recorded it at 24 bit, 48K I'd accept it"...

;) Casey
User avatar
t4mh
Serious Musician
Serious Musician
Posts: 1446
Joined: Wed Nov 26, 2008 11:05 pm
Gender: Male
Location: Indiana

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by t4mh »

I get it. Makes perfect sense. One question comes to mind, when they say it's difficult to build a steep filter, are they talking linear or logarithmic?
I hear the voice of God in a bending guitar string!
Life is too important to be taken seriously
No electrons were harmed in the construction of this message.
http://www.t4mh.com
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: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by mojobone »

ernstinen wrote: Mojo, that makes sense, but according to Bob Moog, who also printed up some genius-style articles on this subject, he's thinking way higher.

First, let's make sure that the Nyquist filter @ 50 Hz really means 50 kHz, correct? That makes sense, although Moog believed the human ear can PERCEIVE sounds above 30-40kHz, which would make the sample rate 60-80 kHz!

As I've stated before, I've rented George Massenberg's incredible analog EQ which goes up to 26kHz. Y'all have doubted me, but I swear to God I can hear the 26kHz on a mix! Come to my studio, and we'll rent one and listen. :mrgreen: --- But anyway, if you double the 26x2, you get a 52 khz sample rate. --- Moog SWORE that analog tape can go up to 40-50 kHz, so the magic sampling number for the human ear is between 80kHz and 100kHz.

Personally, I believe bit rate trumps sampling rate. I've experimented with this extensively, with the ol' "keys on a chain" to check out the high end and clarity. I record 24/96 right now, but that may change the more I learn about this stuff!

All My Best,

Ern 8-) :)
Right, Ern that's a typo! It should read 50kHz, and I've fixed it, thanks! Dr. Moog may be right, but I'm not sure what sort of tape head you'd need to actually print 40-50kHz signals to tape or to reproduce them, or why you'd want to, since we can't really hear 'em. They could be there, in some amount, but I don't know that it's significant. I believe Bob Moog was trying to explain why most people think analog jes' sounds better than digital, and I think Dr. Katz covers that pretty well in his book. For starters, analog tape is 6dB louder than digital; it's an intrinsic advantage, when we know that, all else being equal (which it ain't) the ear will always prefer the louder signal.

I'll equivocate on that point, just a bit, cuz I love me some Massenberg; stuff that happens way up above the passband (human hearing range) does affect what's in the passband, but when we test the human ear's frequency response, we use only the fundamental frequenciess, usually a pure sine wave with as few harmonic partials as we can manage, but with music, fast transients (the front end of a note) have harmonic partials that go way past 20kHz, particularly drums, cymbals and pianos, which surprise!, seem to be the hardest instruments to record digitally.

In the original thread, I mentioned the Baxandall EQ, and how it's corner frequencies are outside the human hearing range but the bandwidth (Q) is super wide-I believe this is key to the sweetness of that particular type of curve. When the Q is that wide, it may have an acoustical effect similar to that of noise shaping.

@ Keith, I'm not really sure whether those curves are linear or log; I would think logarithmic, but it might depend on who's building the filter.
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
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: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by mojobone »

Tom, the short version goes like this here:

Q: Do I need to record at 192kHz?

A: Probably not, but really good converters couldn't hurt.

:D :D :D
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
User avatar
t4mh
Serious Musician
Serious Musician
Posts: 1446
Joined: Wed Nov 26, 2008 11:05 pm
Gender: Male
Location: Indiana

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by t4mh »

Thanks Moj for this info. I was just thinking that jitter would be a problem over the entire spectrum for a linear filter but should only be a factor at the very high end for the log ( where you might not hear it ). Or at least I might not hear it with my poor ears...
I hear the voice of God in a bending guitar string!
Life is too important to be taken seriously
No electrons were harmed in the construction of this message.
http://www.t4mh.com
Dwayne Russell
Committed Musician
Committed Musician
Posts: 539
Joined: Tue Dec 15, 2009 6:16 pm

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by Dwayne Russell »

Casey H wrote:
Actually, you don't need to know this level of detail at all to make great recordings (not that it is not interesting discussion :ugeek: )... Just general guidelines as to what settings to use when you record and mix down. You can make great recordings at 16 bit, 44.1K as has been done for years, **for example**. No one is out there listening to a track and saying, "nice track but if you recorded it at 24 bit, 48K I'd accept it"...

;) Casey
I dont think that is true. you can record a great performance with a radio shack cassette deck but that does not make it a great recording. It just means you recorded a great performance with something.

I think a GREAT recording has both great performance and great fidelity. People might not comment on the fidelity but I think they notice.

If you could A/B a recording make on a great system you would know it. And I dont mean you personally. I mean people in general.

BTW, you make some killer music! I dig your stuff!
Dwayne Russell
Committed Musician
Committed Musician
Posts: 539
Joined: Tue Dec 15, 2009 6:16 pm

Re: Nyquist VS. Nyquil, Which Makes You Fall Asleep Faster?

Post by Dwayne Russell »

I did not see in what you posted that Katz thinks jitter in the A/D is no concern. My conversations with him were about 20 years ago. We were both in a learning curve at that time. But I can't imagine he would discount clocking at the A/D stage. Maybe something happened in all those years that I do not know about.