News for hackers. Stuff that matters.
Re:A Phoenix record store owner set the audiophile world on ... by allears on Friday August 05, 2022 @03:03PM (#32360480)
That's a little simplistic. You can certainly tell the difference between a good analog recording played on a high quality system vs. an MP3. But once you throw enough samples and bit depth at it (more than are on a standard CD), you get quality that's equivalent to, or better than, most analog media.
Re:A Phoenix record store owner set the audiophile world on ... by jrajav on Friday August 05, 2022 @03:18PM (#32360693)
44100hz sample rate is enough to reproduce well above the highest frequency even young humans can hear, and 16 bits of depth is enough for 96db of dynamic range, enough to make the noise floor of any consumer system totally inaudible.

Standard CDs might not be good enough for archival and further production work (where you also need wiggle room for further processing or format changes), but they have plenty of headroom to reproduce any kind of sound for playback purposes. Any more is just placebo.

Re:A Phoenix record store owner set the audiophile world on ... by doix on Friday August 05, 2022 @03:33PM (#32360885)
So it's been many years since I looked at this stuff, but the reason for higher sample rate isn't to do with humans being able to hear over 20khz. If you sample at 44khz you need a high pass filter at 22khz to avoid aliasing. Since that's pretty close to 20khz, it needs a pretty sharp drop off. Having a filter with a sharp drop off can introduce artifacts.

With 96khz sampling rate, you don't need as a sharp drop off in your filter.

The above is mostly accurate, hopefully someone else will comment and tell me how I'm wrong and correct the inaccuracies.

Edit: to anyone reading this, read the replies if you want the correct explanation. To everyone that replied, thank you :).

Re:A Phoenix record store owner set the audiophile world on ... by kazinator on Friday August 05, 2022 @03:40PM (#32360961)
You are correct; with a 96 kHz sampling rate, you don't need such a brick wall filter. But then you dohn't have to actually keep the data at 96 kHz; it can be reduced to 44, this time using a digital filter.

A sharply cutting off analog filter is expensive to produce. It has multiple stages to create the multiple poles. High precision resistors and capacitors have to be used to get all those circuit stages to line up. The filter will have phase distortion.

That's the basis of "supersampling": sampling at a higher rate with a simpler filter with less of a cutoff, then completing the job with a digital filter to get to the target sample rate.

This can be done in reverse, in reproducion. Take, say, a 48 KHz signal, and digitally interpolate it to a higher sample rate like 96 KHz. That is fed to the DAC. The filter after the DAC then doesn't need such a steep cutoff after 20 KHz. A greater bit depth can be used; like 16 bit samples interpolated to 24 bit at a higher rate, fed to a 24 bit DAC.

The digital filter or interpolator doesn't care about accurate resistors, capacitors or drift in component values over time or due to heat; it does the same thing with the same data every time.

Digital filters can look at future values also. The state of an analog filter is determined by only the current and past values of the signal; but digital signal processing can delay the signal a little bit and look at a "box" around the current value. I think that is key to preserving phase relationships.

Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @03:53PM (#32361154)
> with a 96 kHz sampling rate, you don't need such a brick wall filter.

This is incorrect. See my comment above/below.

Re:A Phoenix record store owner set the audiophile world on ... by masklinn on Friday August 05, 2022 @03:47PM (#32361054)
Anything above 44 is problematic because lots of systems have non-linear responses and will create audible intermodulations of the ultraharmonics.

Monty (of xiph) has an article on the subject (well on 24/192 but it applies all the same) which goes into the gory details: https://people.xiph.org/~xiphmont/demo/neil-young.html

Re:A Phoenix record store owner set the audiophile world on ... by pnut on Saturday August 06, 2022 @04:51AM (#32366273)
Interesting video on sample rate effects during digital music production https://youtu.be/-jCwIsT0X8M
Re:A Phoenix record store owner set the audiophile world on ... by ajross on Friday August 05, 2022 @03:48PM (#32361073)
That's the "further processing" notion the grandparent comment talked about. A correctly processed signal at 44.1kHz is more than sufficient to reproduce all audio. But if you're going to do something with the sample series (like low-pass it for aliasing protection in your example, or to resample it for conversion, or for any effects or mixing step really) it's good to have extra data in there to prevent headaches. Likewise sampling at 24+ bits prevents accumulated error in repeated processing, etc...

There's a space in the audio world for more bits of data. But the final output format isn't where it belongs.

Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @03:53PM (#32361148)
[ EDIT: contents of this post were factually incorrect. What Kazinator wrote in response is correct, and I don't want to leave incorrect ideas floating around. ]
Re:A Phoenix record store owner set the audiophile world on ... by kazinator on Friday August 05, 2022 @04:27PM (#32361580)
If the goal is audio capture and reproduction, the filter used when sampling at 96 kHz still starts rolling off at around 20 kHz. The wrap-around aliasing artifacts do not begin until around half of 96 kHz, or around 48 kHz. So the filter only has to be steep enough to hit a large attenuation at 48 kHz: full signal to virtually nothing over the space of 28 kHz.

If you're sampling at 48 kHz, the signal has to be severely attenuated already; it has to go from 20 kHz to deep cutoff in just the space of a few kHz.

At 96 kHz can achieve the effect as if you were sampling at 48 kHz, with a steep filter. You sample at 96 kHz with a milder filter, and then purely in the digital realm, you down-sample to 48 kHz. There is an overall filter consisting of the original analog one plus the digital processing.

That is cheaper and more reliable than doing it all in analog.

An analog filter with a steep cut off will be challenging in mass production because of the strict component tolerances.

Sure, you could use a steep filter with 96 kHz also. Say, a steep filter that starts cutting off at 30 kHz. It would still be a less demanding filtering application because of the margin that you have in the frequency domain. The multiple poles of the filter don't have to be lined up as well. E.g. if the first pole starts rolling off at around 30 kHz, and then next ones at 31, and the third one at 28, ... it doesn't matter because you're still hitting the absolute target of there being next to nothing at 48 kHz, and nearly the full signal at 20 kHz.

Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @05:19PM (#32362097)
You're right, and I'm wrong.
Re:A Phoenix record store owner set the audiophile world on ... by Sporktacular on Friday August 05, 2022 @06:47PM (#32362841)
Sure, but going to disagree about the numbers there. I have a DAW interface which is exceedingly linear (+/- <0.15 dB) up to 35 kHz. Don't need to start filtering so low to hit those results.
Re:A Phoenix record store owner set the audiophile world on ... by mturmon on Friday August 05, 2022 @04:04PM (#32361299)
This explanation loses me at "infinity per dB" ... and I'm an EE. I think you're trying to cover too much ground here, it's really confusing to try to understand what you mean.

I believe the comment you're responding to is talking about the analog filter that is needed to avoid aliasing -- as the first words of your comment correctly note/explain.

And in particular, the original comment seems to be noting the phase distortion (in frequencies near the cutoff) that analog brick-wall filters will cause. This has been a design contention for decades, really, ever since the CD format was introduced.

It's a big design space, with options for gentler analog filters, followed by very fast digital sampling, and further tricks with filtering in the digital domain, where you don't have to worry about getting great capacitors, etc.

It may be out-of-scope to lay all that out in one paragraph!

Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @04:10PM (#32361390)
That's why I had some blank lines in there :)

You're right that its a big design space. The key takeaway is that "yes, higher sample rates can actually make a difference, but almost entirely down to the filter design, not because Nyquist moves ... and you probably cannot hear the difference."

Re:A Phoenix record store owner set the audiophile world on ... by TylerE on Friday August 05, 2022 @03:45PM (#32361034)
Yes, i hate when people talk about Nyquist as if its some Panacea.

Its vwry “spherical cow”. It assumes all your filters, DACs, are perfect, and that time is infinite.

Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @03:55PM (#32361196)
Nyquist isn't about such assumptions at all. It is an information theoretic value, based on the provable claim that there is zero information present in the original analog waveform that is not represented in the digital version.

Yes, your filters, DAC and speaker wire could still create a less than ideal listening situation, but the fundamental aspect of the Nyquist frequency is not concerned with any of that.

Re:A Phoenix record store owner set the audiophile world on ... by kazinator on Friday August 05, 2022 @04:12PM (#32361433)
There is zero information present in a waveform that is not contained in the digital version, if that original waveform is confined below the Nyquist limit. Either it is that way already, or else is derived from an original-original waveform that isn't, by low-pass filtering.
Re:A Phoenix record store owner set the audiophile world on ... by PaulDavisThe1st on Friday August 05, 2022 @04:27PM (#32361585)
That's an excellent coda/qualification of what I said. Put into a more listener centric context: there's no audible information in a waveform that is not captured by sampling it at 44.1khz.
Re:A Phoenix record store owner set the audiophile world on ... by masklinn on Friday August 05, 2022 @03:51PM (#32361108)
The exact same spherical cow issue applies, with worse effects, when you increase your sampling rate unnecessarily.

And you can use oversampling to correct for the filtering issues. That's pretty standard in modern DACs and ADCs.

Re:A Phoenix record store owner set the audiophile world on ... by Dylan16807 on Friday August 05, 2022 @07:30PM (#32363149)
You only need so much margin, though.
Re:A Phoenix record store owner set the audiophile world on ... by NovemberWhiskey on Friday August 05, 2022 @03:49PM (#32361090)
That's fine - but, to the extent that's true, it's true only about the recording and mastering process. CD, as a delivery mechanism, is totally fine and perceptually flawless.
Re:A Phoenix record store owner set the audiophile world on ... by tzs on Friday August 05, 2022 @07:51PM (#32363311)
> 44100hz sample rate is enough to reproduce well above the highest frequency even young humans can hear

It's enough to reproduce well above what we can hear by the normal mechanism that we use for most of our hearing (sound vibrates the eardrum, which vibrates some tiny bones in the middle ear, which cause fluid in the cochlea to ripple which disturb sensory hairs which we perceive as sound).

Ultrasonic sounds can be conducted to the cochlea via the surrounding bone bypassing the eardrum and middle ear. Those bone conducted ultrasonics can be perceived. See [1].

This is probably not important in music except in maybe a few rare cases.

I'd still like to see better frequency handling though, so that our music wouldn't sound terrible to the dogs and cats that are forced to listen with their owners. We can't normally hear much past 20 KHz (more like 12 KHz for many of us), but they can.

There are several musical instruments that have significant ultrasonic output. It would be an interesting experiment to see if dogs and cats like those instruments live better than they do recorded (or dislike live less than they dislike recorded). Then compare to the same experiment but with instruments that don't have ultrasonic output.

[1] https://pubmed.ncbi.nlm.nih.gov/23384569/

Re:A Phoenix record store owner set the audiophile world on ... by kazinator on Friday August 05, 2022 @03:37PM (#32360933)
Not only that, but what you hear at those upper frequencies isn't tone anyway. the highest harmonics of tonal sounds live in that region, plus aperiodic signals (the hiss from sibilants, cymbals crashing, and so on).

The content can be faked, and this is used in low-bandwidth codecs and such.

https://en.wikipedia.org/wiki/Bandwidth_extension

Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @07:44PM (#32363270)
> Any more is just placebo.

This is a very simplistic view of things, on many fronts, but I'll try to be as concise as possible.

In a classical wind/bow orchestra, there are more harmonics at play than the 20Hz-20KHz band, and these harmonics affects our perception of the sound and soundstage. However, recreation of this is very hard, because you need both recording and playback chains which can handle these harmonics as well.

To faithfully reproduce such orchestra, you need a speaker for every instrument, ideally with the exact air movement capacity of the instrument you're mirroring. This is not practical. Instead we mic all of them, mix all of them, and add room echo to the mix to capture harmonics as best as we can.

However, this can't replicate some instruments anywhere around its real sound.

Examples are Turkish qanun [0] and Chinese guzheng [1]. These instruments sound bland, flat and shallow on all recordings, but listening them live, directly with your ears is a goose pimlples inducing experience. Higher end stringed instruments have a similar vibe to them.

So, a 16bit/44KHz signal at 20Hz-20KHz band cannot reproduce these instruments with any faith.

Standard CDs, high quality vinyls, lossless files carry a lot of information, but not all information we can process with our ears. Like how even the best digital cameras cannot reproduce the colors we can see with our eyes.

Reaching these resolution levels are neither cheap, nor practical, hence we use what's practical.

As a result, your master-pressed-vinyl possibly can't carry this information either, because the recording chain was not able to capture that amount of information, even if you went all the way to install your own power pole to feed clean power to your impossibly expensive audio equipment with all that capacity to reproduce that sound.

IOW, you can't extract the sound which is not there to begin with.

Your friendly ex-orchestra player reported from its AKAI-AM2850.

[0]: https://en.wikipedia.org/wiki/Qanun_(instrument)

[1]: https://en.wikipedia.org/wiki/Guzheng

Re:A Phoenix record store owner set the audiophile world on ... by tzs on Friday August 05, 2022 @08:02PM (#32363385)
> To faithfully reproduce such orchestra [...]

It has never been clear to me what the goal of home playback is supposed to be.

Let's simplify from a full orchestra to just a solo piano. Is the goal

1. to sound like it would if that piano was being played in my living room, or

2. to sound like what I'd have heard if I was there in the concert hall sitting in a good seat when the recording was made, or

3. to sound like what it would sound like if a replica of my living room was built inside the concert hall but with walls that do not transmit sound, with my speakers replaced by speaker-sized holes in the wall behind where the speakers normally sit, and I was sitting in that replica living room during the concert?

Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @08:10PM (#32363442)
Normally, it’s “2”. Music is mastered to transfer you to the place where it’s recorded. Mastering is just tuning the sound to fit into your music system limits, while keeping the atmosphere as much as possible.

ABBA’s sound is mastered to fit into AM radio and jukeboxes for example. To make the music broadly listenable, for example.

Today everything is so blurry, because there’s no studio per se. It’s just sequenced, vocal is added, mastered, compressed and released (today’s pop). Rock and other stuff is still track recorded, tho.

Re:A Phoenix record store owner set the audiophile world on ... by hemogloben on Friday August 05, 2022 @09:57PM (#32364093)
I worked in guitar audio effects for a while (the exact opposite of this discussion), but I started playing with stereo guitar rigs and then thought about three speaker setups and beyond.

At a certain point the speakers really start to interfere with each other and you have to worry about the stability of the image at each point in the room...

It occurred to me at that point that you're really starting to approach 3. You're trying to recreate the sound pressure patterns within the room.

That's about the point I moved on to something simpler. Granted my explorations were super simple, but it was a VERY weird thought that got me thinking about the question you've asked.

Re:A Phoenix record store owner set the audiophile world on ... by TylerE on Friday August 05, 2022 @03:16PM (#32360666)
I suspect the real reason is that vinyl largely escaped the ravages of the loudness war, because physics.

(And also much of the digital gear in the 80s when the first wave of CD releases was pretty crappy)

Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @03:20PM (#32360710)
And the standard equalizer you need to apply during record/playback of the medium.
Re:A Phoenix record store owner set the audiophile world on ... by aaaaaaaaaaab on Friday August 05, 2022 @03:08PM (#32360552)
>(more than are on a standard CD)

Sorry, but CD (16bit PCM) has better dynamic range than vinyl. The best vinyl systems can have dynamic range of around 80dB. 16bit PCM is 96dB.

Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @03:16PM (#32360655)
Unless it’s brick-wall normalized during mastering.
Re:A Phoenix record store owner set the audiophile world on ... by kstrauser on Friday August 05, 2022 @03:22PM (#32360743)
That's a real thing, to be sure. The Loudness Wars have completely ruined any number of otherwise decent recordings. The worst I ever heard was Dropkick Murphys's "The Meanest of Times" which had the dynamic range of an air conditioner in Phoenix.

Still, you can always take a great analog recording, pipe it into a good ADC, and listen to that sample forever without degradation. I think almost everything can play FLACs now.

Re:A Phoenix record store owner set the audiophile world on ... by Tsiklon on Friday August 05, 2022 @08:31PM (#32363580)
Metallica's Death Magnetic was another truly dreadful example of the loudness war - Thankfully a better mastered release came out in 2015. I've just got my hands on this release and comparing it against my original copy it is a night and day improvement - especially on "All Nightmare Long".
Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Saturday August 06, 2022 @03:05AM (#32365705)
Yeah, the first release was pure clipping, no music. I remember listening to it and saying? “Did all we wait for this? C’mon”.
Re:A Phoenix record store owner set the audiophile world on ... by nikau on Saturday August 06, 2022 @11:57PM (#32373772)
Hah I had the same experience, I thought some idiot had recorded it via their soundcard line in or something.

Eventually got the better mastered version which was leaked from guitar hero or something.

Re:A Phoenix record store owner set the audiophile world on ... by masklinn on Friday August 05, 2022 @03:22PM (#32360736)
Sure but that's got nothing to do with the CD itself. Except in that you would not be able to brick-wall a vynil at all so you don't.
Re:A Phoenix record store owner set the audiophile world on ... by vosper on Friday August 05, 2022 @03:23PM (#32360754)
Which is not an issue with the digital format, but with the mastering.
Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @04:34PM (#32361665)
However, you can’t change the mastering of the album you have bought. When the CD version of the album you have bought has subpar audio quality, the abilities of the medium has no value and importance.
Re:A Phoenix record store owner set the audiophile world on ... by Sporktacular on Friday August 05, 2022 @06:52PM (#32362869)
"When the CD version of the album you have bought has subpar audio quality"

Yes, but these mastering choices could apply to the vinyl version too. In other words, your response had nothing to do with a comparison of the two media.

Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @07:30PM (#32363151)
Nope, you can't apply the same mastering to the vinyl, esp. the latest stonewalling compression/normalization techniques because of RIAA equalization [0].

Without RIAA equalization, it's not possible to keep the needle in the groove with that amount of bass and low end. You can't keep the needle on the track with stonewalling even with RIAA equalization.

As a result, you are limited by the medium itself, hence you have to make milder choices.

[0]: https://en.wikipedia.org/wiki/RIAA_equalization

Re:A Phoenix record store owner set the audiophile world on ... by Sporktacular on Monday August 08, 2022 @06:37PM (#32391998)
Obviously the mastering differs. So your point is that the mandatory mastering limitations specific to each medium should be factored into comparisons between media?

Perhaps, but what about optional mastering choices like brick-wall limiting with normalization (which is what I think you meant)? Maybe I'm misunderstanding your point.

Re:A Phoenix record store owner set the audiophile world on ... by netr0ute on Friday August 05, 2022 @07:17PM (#32363040)
> could apply to the vinyl version too

They can't, because these choices create enough volume for the needle to go haywire, so mastering always has a better dynamic range.

Re:A Phoenix record store owner set the audiophile world on ... by Sporktacular on Monday August 08, 2022 @06:42PM (#32392047)
Again, mastering choices differ between distribution media, that's obvious.

When you say 'mastering always has a better dynamic range', did you mean CD quality PCM has a better dynamic range?

Re:A Phoenix record store owner set the audiophile world on ... by NovemberWhiskey on Friday August 05, 2022 @11:03PM (#32364422)
The highest-of-high end analog tape with Dolby SR and the works is still objectively inferior to vanilla 44.1 kHz / 16 bit PCM.
Re:A Phoenix record store owner set the audiophile world on ... by bayindirh on Friday August 05, 2022 @03:15PM (#32360637)
Telling this out loud upsets a lot of people, but I’m on the same boat with you.

A good lossless album, regardless of the medium played through shows a significant difference in soundstage given the system can handle the resolution thrown at it when compared with a MP3/M4A file.

Re:A Phoenix record store owner set the audiophile world on ... by masklinn on Friday August 05, 2022 @03:23PM (#32360752)
> Telling this out loud upsets a lot of people, but I’m on the same boat with you.

It "upsets a lot of people" in the same sense and for the same reason as telling them drinking alkaline water cures cancer.