Skeptico Saloon: An Objectivist Joint
Mar 13, 2014 at 2:26 AM Post #557 of 1,671
This is interesting too...
 
192kHz considered harmful
 
192kHz digital music files offer no benefits. They're not quite neutral either; practical fidelity is slightly worse. The ultrasonics are a liability during playback.
Neither audio transducers nor power amplifiers are free of distortion, and distortion tends to increase rapidly at the lowest and highest frequencies. If the same transducer reproduces ultrasonics along with audible content, any nonlinearity will shift some of the ultrasonic content down into the audible range as an uncontrolled spray of intermodulation distortion products covering the entire audible spectrum. Nonlinearity in a power amplifier will produce the same effect. The effect is very slight, but listening tests have confirmed that both effects can be audible.

 
Source: http://people.xiph.org/~xiphmont/demo/neil-young.html
 
Mar 13, 2014 at 7:01 PM Post #558 of 1,671
https://www.xiph.org/video/vid2.shtml

Great video with simple explanations of digital sampling, bit depth, dither, band limitation and timing. 

So if the DAC doesn't do the staircase representation going back to the analog waveform from digital samples, what does it do?

http://en.wikipedia.org/wiki/Digital-to-analog_converter#Practical_operation
These numbers are written to the DAC, typically with a clock signal that causes each number to be latched in sequence, at which time the DAC output voltage changes rapidly from the previous value to the value represented by the currently latched number. The effect of this is that the output voltage is held in time at the current value until the next input number is latched, resulting in a piecewise constant or staircase-shaped output. This is equivalent to a zero-order hold operation and has an effect on the frequency response of the reconstructed signal.
 
Mar 13, 2014 at 7:31 PM Post #559 of 1,671
The output of the DAC goes through a filter that "connects the dots" between the stair steps and reconstructs the waveform.
 
Mar 13, 2014 at 8:27 PM Post #560 of 1,671
Yes, the reconstruction filter is mathematically part of the process. Check any DSP textbook or resource.
 
But note that in practice, most audio DACs are oversampling delta-sigma affairs anyway, so there's not actually 2^N possible output values internally (with N being the bit depth).
 
Mar 13, 2014 at 8:33 PM Post #561 of 1,671
So if the DAC doesn't do the staircase representation going back to the analog waveform from digital samples, what does it do?

http://en.wikipedia.org/wiki/Digital-to-analog_converter#Practical_operation

 
Take some time and watch the mentioned video, especially the 4 minutes from about 3:37 to 7:30.
 
The Wikipedia piece isn't strictly correct. Not all DACs produce a zero-order hold output. Some produce a narrow pulse of the required current or voltage value, rather than holding it steady for the whole sample period. Even for zero-order hold, it's not all bad. It results in a slight low-pass filter effect which simplifies the reconstruction filter.
 
Mar 13, 2014 at 9:35 PM Post #562 of 1,671
So if the DAC doesn't do the staircase representation going back to the analog waveform from digital samples, what does it do?

http://en.wikipedia.org/wiki/Digital-to-analog_converter#Practical_operation


Take some time and watch the mentioned video, especially the 4 minutes from about 3:37 to 7:30.

The Wikipedia piece isn't strictly correct. Not all DACs produce a zero-order hold output. Some produce a narrow pulse of the required current or voltage value, rather than holding it steady for the whole sample period. Even for zero-order hold, it's not all bad. It results in a slight low-pass filter effect which simplifies the reconstruction filter.

I did watch the video, but he didn't explain at all how the staircase disappears in the analog waveform.

Interesting to hear about the filters though.
 
Mar 13, 2014 at 10:24 PM Post #563 of 1,671
I did watch the video, but he didn't explain at all how the staircase disappears in the analog waveform.

Interesting to hear about the filters though.

 
The following is over-simplified but will hopefully make sense:
What do the "stair steps" look a bit like? Square wave steps.
What is a square wave? It's made up of a (sine wave) fundamental frequency and harmonics.
Now filter off all the harmonics. You're left with the fundamental sine wave.
It's the same thing with the unfiltered output of a DAC. Filter off all harmonics higher in frequency higher than half the sampling rate, and you're left with a smooth curve.
 
Mar 14, 2014 at 11:37 AM Post #564 of 1,671
 
The following is over-simplified but will hopefully make sense:
What do the "stair steps" look a bit like? Square wave steps.
What is a square wave? It's made up of a (sine wave) fundamental frequency and harmonics.
Now filter off all the harmonics. You're left with the fundamental sine wave.
It's the same thing with the unfiltered output of a DAC. Filter off all harmonics higher in frequency higher than half the sampling rate, and you're left with a smooth curve.

 
Yup.
 
For another take, think about what it takes to get a sharp, abrupt change in the level like on a staircase. You need very high frequencies. To get very fast changes you need very high frequencies.
 
Think of the filter as a block of electronics that are preventing those very high frequencies from passing through, filtering them out. It's continually processing the input (what's from the DAC) and generating a processed version for the output based on the characteristics of that block. If it sees a very sudden change in the input, that change (which contains very high frequencies) is getting filtered and slowed down, smoothing out the response of the output compared to the input.
 
What with all the handwaving, hopefully that didn't create extra confusion.
 
Mar 15, 2014 at 2:23 AM Post #565 of 1,671
   
Yup.
 
For another take, think about what it takes to get a sharp, abrupt change in the level like on a staircase. You need very high frequencies. To get very fast changes you need very high frequencies.
 
Think of the filter as a block of electronics that are preventing those very high frequencies from passing through, filtering them out. It's continually processing the input (what's from the DAC) and generating a processed version for the output based on the characteristics of that block. If it sees a very sudden change in the input, that change (which contains very high frequencies) is getting filtered and slowed down, smoothing out the response of the output compared to the input.
 
What with all the handwaving, hopefully that didn't create extra confusion.

 
A third take is to say that the stair-steps was never there, only the data points exist.
And in the same way as there is only one possible straight line that can connect two given points, as long as there are more than two data points per cycle, there is only one possible sine wave that can fit them all.
 
Interpolation
 
Mar 15, 2014 at 12:38 PM Post #566 of 1,671
The actual data is discrete time, but you can say the staircase exists like that in some systems—just as an intermediary step in a process. 
 
The solutions aren't always just pure sign waves though. If there are multiple frequencies, you need to specify the phase for uniqueness. e.g. an impulse (containing many frequencies) will result in a different looking continuous-time representation for a minimum phase filter than a linear phase one. That is, unless I need some coffee / hitting the books really bad and am forgetting something. 
 
Also, if there are fewer than two data points per cycle, that still gets represented with the same kind of uniqueness, just using the wrong frequencies...
 
Mar 15, 2014 at 3:04 PM Post #567 of 1,671
It was more an attempt of a conceptual description of how one can make smooth curves from discrete points, rather than describing how it's actually done in a DAC.
But I believe, given the right conditions, or rules, for drawing the curves, it's theoretically reasonably sound.
 
Mar 15, 2014 at 10:20 PM Post #568 of 1,671
Mmk that helped clear things up then.

Another question I have is why does professional audio equipment use an ADC sampling at higher than 44.1 kHz? I'm taking a course about the LabVIEW software and the recommended textbook suggests not to sampling past twice the Nyquist frequency or else aliasing can occur.
Oh, I think this answered my question: https://www.xiph.org/video/vid1.shtml




Also, this is completely random, but does anyone know of where I can test to see how small of a difference in loudness I can hear between two samples?

I remember doing such a test and they sent the results via e-mail, but I can't seem to find them. I seem to recall that I could hear a 0.5 dB difference, but I'm not 100% sure. I'm not sure what to type in Google either. XD

No it wasn't the Golden Ears test either.
 
Mar 16, 2014 at 2:59 AM Post #569 of 1,671
Also, this is completely random, but does anyone know of where I can test to see how small of a difference in loudness I can hear between two samples?

I remember doing such a test and they sent the results via e-mail, but I can't seem to find them. I seem to recall that I could hear a 0.5 dB difference, but I'm not 100% sure. I'm not sure what to type in Google either. XD

No it wasn't the Golden Ears test either.

 
Should be pretty easy to do yourself. All you'd need is Audacity (or something similar) to whisk up a couple of samples and some ABX software to test yourself.
 
As to what kind of samples, I'd probably go with some pure 1kHz sine tones, and start with maybe a .5dB difference and gradually reduce it until I can no longer reliably tell the difference.
 
Mar 17, 2014 at 2:03 AM Post #570 of 1,671
Also, this is completely random, but does anyone know of where I can test to see how small of a difference in loudness I can hear between two samples?


I remember doing such a test and they sent the results via e-mail, but I can't seem to find them. I seem to recall that I could hear a 0.5 dB difference, but I'm not 100% sure. I'm not sure what to type in Google either. XD


No it wasn't the Golden Ears test either.


Should be pretty easy to do yourself. All you'd need is Audacity (or something similar) to whisk up a couple of samples and some ABX software to test yourself.

As to what kind of samples, I'd probably go with some pure 1kHz sine tones, and start with maybe a .5dB difference and gradually reduce it until I can no longer reliably tell the difference.

Mmk, that sounds easy enough.



[rule]Now if I wanted to do a blind test, how do I make it so that the files are all the same size? I want to do a proper 24/192 vs downsampled 16/44 test.

I was thinking of using XLD (for Mac) or Audacity to do the downsampling. Is there another free program that you all recommend that might do the job better?
 

Users who are viewing this thread

Back
Top