Jump to content
IGNORED

Understanding Sample Rate


Recommended Posts

26 minutes ago, Don Hills said:

 

This is a commonly held belief, but it is incorrect.

The time resolution of a 16 bit, 44.1khz PCM channel is not limited to the 22.7µs time difference between samples. The actual minimum time resolution is equivalent to 1/(2pi * quantization levels * sample rate). For 16/44.1, that is 1/(2pi * 65536 * 44100), which is about 55 picoseconds. To put that in perspective, light travels less than an inch in that time.  
 
Shannon and Nyquist showed that as long as you keep all components of the input signal below half the sampling frequency, you can reconstruct the original signal perfectly - not just in terms of amplitude, but in terms of temporal relationships too. They only addressed sampling, and assumed infinite resolution in amplitude. With a digital signal the precision is limited by the number of amplitude steps, leading to the above formula.

 

If you want to see a real-world example, watch the following video:

 

 

The whole video is worth watching, but the most relevant part starts at about 21:50. It shows the edge of a square wave being smoothly moved in time between 2 sample points.

 

 I'll be sure and watch it all and report back later.  On the surface, I'm having trouble grasping that time resolution could be partially a function of amplitude and not purely based on sample rate.  One is about "loudness" of a sample (not time), the other is more obviously about the rate (in time).  But perhaps the video will help me grasp that better.  And my noob brain just needs to go a little deeper! 

 

 

Link to comment

ok, I now understand why transients are still preserved (regardless of the sample rate) despite them being sampled discreetly, and that you CANT lose the "edge" of a transient between samples. Excellent video and pretty darn easy to follow to boot!

 

Thanks @Don Hills .  Good stuff.  

 

@Ralf11 - I think I'll point Hans to this video and see if he can comment on it.  I have enjoyed watching him over the past year or so, but have to award credence to the EE I just watched, who I'd think is better accredited to explain this topic.  Though TBH, I don't know Han's background so maybe that isn't fair just yet. 

 

I'd like to pick your guys' brains on the subject of reconstruction filter design and the effects of signal delay with a linear phase filter vs a minimum phase filter sometime.  I'm convinced I hear the arrival of lower frequencies before I should (or in relation to the high frequencies) when a linear phase filter is employed.  To my ears, a minimum phase just feels tighter and better timed.   This could be another argument for higher sampling rates = the slower rolloff filtering.

Link to comment

In theory then, it's an argument for 24 bit sampling. :)

In practice, 55 picoseconds ought to be "close enough for rock'n'roll".

As a thought exercise, what is the accepted minimum time resolution for human hearing? From that, we can work out how many bits are required to encode it.

"People hear what they see." - Doris Day

The forum would be a much better place if everyone were less convinced of how right they were.

Link to comment
6 minutes ago, esldude said:

To expand upon Don's reply, imagine sampling a 1 khz sine wave that started exactly at the first sample. The next sample will be some amplitude above zero.  Now imagine instead the wave starts some small time after the first sample. The next sample will be some amplitude above zero, but by a smaller amount. The accuracy by which you can place the beginning of that wave is poor if your step between bits is large.  If you have more bits, in other words smaller step sizes, you can more accurately place they beginning point after the first sample. If you can picture that, it becomes clear smaller step sizes improves time resolution.  All without changing sample rate.

yes, it's making sense.... wasn't very apparent at first, but sketching that out in my mind I get it.  This is also presumably why there's an increase in 24/44.1 material becoming available.  NOT ONLY because we need the extra dynamic range for say classical music, but because it has better resolution in time as well?

Link to comment
8 minutes ago, Don Hills said:

In theory then, it's an argument for 24 bit sampling. :)

In practice, 55 picoseconds ought to be "close enough for rock'n'roll".

As a thought exercise, what is the accepted minimum time resolution for human hearing? From that, we can work out how many bits are required to encode it.

 

Exactly - if I'm doing my math correctly (always a shaky proposition for me!), 48/24 sampling would be 279x more sensitive in time discrimination than 44/16 - down to an incredible 198 femtoseconds! 

John Walker - IT Executive

Headphone - SonicTransporter i9 running Roon Server > Netgear Orbi > Blue Jeans Cable Ethernet > mRendu Roon endpoint > Topping D90 > Topping A90d > Dan Clark Expanse / HiFiMan H6SE v2 / HiFiman Arya Stealth

Home Theater / Music -SonicTransporter i9 running Roon Server > Netgear Orbi > Blue Jeans Cable HDMI > Denon X3700h > Anthem Amp for front channels > Revel F208-based 5.2.4 Atmos speaker system

Link to comment

So, agreeing now that bit depth/word length increases time resolution......would any of you agree there is merit in a higher sample rate insomuch as you can use the final octave for a slower rolloff reconstruction filter?  IE, an 88.2 file would have a very gentle sloped rolloff between 22K and 44K?

 

I'm thinking this is why @mansr (whom I've been following) has 24/96 as his avatar?

 

And also why there is such overt disdain for MQA here at CA - especially from those who know a lot about digital sampling?  Especially if all you need is 24/96 PCM! 

 

I believe the bigger picture is starting to come into focus for me here!  

Link to comment
23 minutes ago, Don Hills said:

In theory then, it's an argument for 24 bit sampling. :)

In practice, 55 picoseconds ought to be "close enough for rock'n'roll".

As a thought exercise, what is the accepted minimum time resolution for human hearing? From that, we can work out how many bits are required to encode it.

Well the research showing 5 micro seconds is shaky.  10 microseconds is detected between ears.  Either way at 44.1 1 bit is more than enough just for timing. According to the formula. Haha!

And always keep in mind: Cognitive biases, like seeing optical illusions are a sign of a normally functioning brain. We all have them, it’s nothing to be ashamed about, but it is something that affects our objective evaluation of reality. 

Link to comment
1 hour ago, esldude said:

To expand upon Don's reply, imagine sampling a 1 khz sine wave that started exactly at the first sample. The next sample will be some amplitude above zero.  Now imagine instead the wave starts some small time after the first sample. The next sample will be some amplitude above zero, but by a smaller amount. The accuracy by which you can place the beginning of that wave is poor if your step between bits is large.  If you have more bits, in other words smaller step sizes, you can more accurately place they beginning point after the first sample. If you can picture that, it becomes clear smaller step sizes improves time resolution.  All without changing sample rate.

 

With large step sizes you could slide the beginning of the wave forward and backwards in time without registering a change in sample value. Small step values reduce the time period before the sample value changes by the LSB.  Note the range is far smaller than time between samples.

 

 

Digital to analog conversion is like to binding of sample values (its tops) by a "steel-edge ruler". The "ruler as curve". It is interpolation. It made analog filter.

Bit depth cause curve form error. We can observe it as noise at spectrum of digital signal. And analog one too.

 

By Naquist theorem sample rate must be 2 times more, than restored curve frequency (if the curve is sine).

 

But accuracy of restoring depend on sample number that bend the "ruler". In ideal need infinite sample number. And analog filter must be "infinite brickwall".

Thus sample rate increasing is easier way to more accurate restoring of original sine at given frequency. Bit depth too.

But it is no need to worry more than accuracy of spectrum. Because it show any distortions more clear than oscillogram (in proper settings for considered case). Sometimes need to consider spectrum development in time (time-frequency diagram).
 

AuI ConverteR 48x44 - HD audio converter/optimizer for DAC of high resolution files

ISO, DSF, DFF (1-bit/D64/128/256/512/1024), wav, flac, aiff, alac,  safe CD ripper to PCM/DSF,

Seamless Album Conversion, AIFF, WAV, FLAC, DSF metadata editor, Mac & Windows
Offline conversion save energy and nature

Link to comment
49 minutes ago, esldude said:

Well the research showing 5 micro seconds is shaky.  10 microseconds is detected between ears.  Either way at 44.1 1 bit is more than enough just for timing. According to the formula. Haha!

 

Well, let's take the worst case and add an order of magnitude to be sure. Say 500 nano seconds.

 

1/(2pi * quantization levels * sample rate).

1/(2 pi * 8 * 44100) = 450 nano seconds if I've done the sum correctly.

That's 3 bits.

So even 3 bit encoding is more than enough as far as timing is concerned. You'd have trouble hearing a 3 bit (of 16) encoded signal at all, let alone discern a timing difference. And if you boosted it to normal listening levels it'd be too noisy to be called "hi fi". 

 

Can we agree that time resolution, even at 16/44.1, is a non issue?

"People hear what they see." - Doris Day

The forum would be a much better place if everyone were less convinced of how right they were.

Link to comment
5 minutes ago, Don Hills said:

 

Well, let's take the worst case and add an order of magnitude to be sure. Say 500 nano seconds.

 

1/(2pi * quantization levels * sample rate).

1/(2 pi * 8 * 44100) = 450 nano seconds if I've done the sum correctly.

That's 3 bits.

So even 3 bit encoding is more than enough as far as timing is concerned. You'd have trouble hearing a 3 bit (of 16) encoded signal at all, let alone discern a timing difference. And if you boosted it to normal listening levels it'd be too noisy to be called "hi fi". 

 

Can we agree that time resolution, even at 16/44.1, is a non issue?

No argument from me. With 3 bits you could have dither. 

And always keep in mind: Cognitive biases, like seeing optical illusions are a sign of a normally functioning brain. We all have them, it’s nothing to be ashamed about, but it is something that affects our objective evaluation of reality. 

Link to comment
1 hour ago, audiventory said:

 

 

But accuracy of restoring depend on sample number that bend the "ruler". In ideal need infinite sample number. And analog filter must be "infinite brickwall".

Thus sample rate increasing is easier way to more accurate restoring of original sine at given frequency. Bit depth too.

But it is no need to worry more than accuracy of spectrum. Because it show any distortions more clear than oscillogram (in proper settings for considered case). Sometimes need to consider spectrum development in time (time-frequency diagram).
 

 

of anyone to post on subject, i agree mostly with you in my thinking or belief.

 

i can likely agree with this, and thus "good enough"

more accuracy obtainable with higher sample rate, but "good enough" where "good enough" is subjective...i have conceded that long ago.

 

i also think distortions you speak of are likely more prominent in production, than in live. 

 

I think you have a good grasp of my belief, and that you have more truth on subject than anyone here.

Link to comment
28 minutes ago, beerandmusic said:

i also think distortions you speak of are likely more prominent in production, than in live. 

 

Distortions is very useful thing in development of audio tools. It allow to aim and exactly control results of work.

Though binding of figures and subjective perception is not simple work.

AuI ConverteR 48x44 - HD audio converter/optimizer for DAC of high resolution files

ISO, DSF, DFF (1-bit/D64/128/256/512/1024), wav, flac, aiff, alac,  safe CD ripper to PCM/DSF,

Seamless Album Conversion, AIFF, WAV, FLAC, DSF metadata editor, Mac & Windows
Offline conversion save energy and nature

Link to comment
31 minutes ago, audiventory said:

 

Distortions is very useful thing in development of audio tools. It allow to aim and exactly control results of work.

Though binding of figures and subjective perception is not simple work.

i "think" this coincides with my statement that with greater sample rate comes greater accuracy to the point where engineering cannot process without error?

 

in live, we have music and ears that are not so prone.

Link to comment
5 hours ago, bobbmd said:

@Spacehound but he authored my freshman general chemistry text at St Lawrence University in 1965=i still have it somewhere-just about the same time he uttered that nonsense about Vit C and the human body doesn't store VitC you just pee excess out-Laureates don't know everything

goodnite time for Homeland...

bobbmd

Which has absolutely nothing to do with the topic at hand. In any way, shape, or fashion. What one individual scientist thinks (even a Nobel Winner) means nothing without evidence to back it up and testing of the hypothesis. That's the difference between science and belief.  A Nobel winner can believe anything he wants. His beliefs aren't science. 

Main listening (small home office):

Main setup: Surge protector +>Isol-8 Mini sub Axis Power Strip/Isolation>QuietPC Low Noise Server>Roon (Audiolense DRC)>Stack Audio Link II>Kii Control>Kii Three (on their own electric circuit) >GIK Room Treatments.

Secondary Path: Server with Audiolense RC>RPi4 or analog>Cayin iDAC6 MKII (tube mode) (XLR)>Kii Three .

Bedroom: SBTouch to Cambridge Soundworks Desktop Setup.
Living Room/Kitchen: Ropieee (RPi3b+ with touchscreen) + Schiit Modi3E to a pair of Morel Hogtalare. 

All absolute statements about audio are false :)

Link to comment
15 minutes ago, firedog said:

Which has absolutely nothing to do with the topic at hand. In any way, shape, or fashion. What one individual scientist thinks (even a Nobel Winner) means nothing without evidence to back it up and testing of the hypothesis. That's the difference between science and belief.  A Nobel winner can believe anything he wants. His beliefs aren't science. 

Right or wrong, it's a demonstration that you should never 'argue by example' as opposing ones can always be found.

 

But many continue  to do it,  including (I suspect) the majority of  CA members present on 'controversial'  threads, which often actually begin with an example.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...