Sox/R8Brain upsampling for dummies

Is there anyone who can help me understand the Sox/R8Brain upsampling options?

I battled my way through the “info” button on the settings page and still couldn’t see when one would choose Sox and when R8Brain. And which options for each.

I have similarly waded through the HQ Player documentation without understanding it.

I watched Passion for Sound’s video on HQ Player settings, and I can see he doesn’t understand it either.

So I have done due diligence on trying to understand all of this.

Is there anyone who can help me?

1 Like

Just play your music bit perfect and forgot upsampling if you don’t understand those settings, you’ll live up much longer :grinning:

3 Likes

You can think of this in three parts… Up/Down sample, phase and shape/rolloff…
Archimago does a good job of explaining and even has some pictures that may help…

Everyone’s kit, room, ears and brain are different… No single choice of parameters will be loved by everyone… Trust your own ears and don’t worry about what others think when it comes to your own personal taste in sound…

2 Likes

All solid points given here ( including @Jacob ) It’s going to come down to your personal preferences, ears and gears. I’d suggest taking a screenshot of the default settings and try both options out with and without upsampling. Your equipment may or may not be capable of high upsampling to DSD perhaps. Have some good fun with it :+1:t2:
Best luck with it.

3 Likes

Damien has told me that they are getting best results with r8Brain primarily due to the more current code… So I use r8Brain.

r8Brain is simple to implement if you understand three important things: First is to understand what Nyquist Frequency is, and the ramifications of where the Nyquist filter is applied… And, what does “Stopband” mean in a filter design and the ramifications of the stopband filter attenuation setting… And finally the difference between minimum phase and linear phase filter affects on the signal…
Monkey around with the settings to ge a feel for how it affects the sound-quality of your files.

Like Ddude003 recommends:

However, It is always good to get a handle on what is going on in those algorithms/filters… :sunglasses: :+1:

:notes: :eye: :headphones: :eye: :notes:

2 Likes

I would advise not to pay much attention to this, it’s not something to focus on, use tidal or qobuz, and improve your equipment and you will be fine.

  • Upsampling will be done to PCM format files regardless. If you send bit perfect PCM to virtually any consumer DAC, with only a handful of exceptions, it will be upsampled inside the DAC and converted to DSD or a format similar to DSD. So your choice isn’t so much whether or not to upsample, but where. Your computer will pretty much always have more resources for this conversion, and be able to do it in a more sophisticated manner.

  • R8Brain is considered by the developer, Damien, to be the better upsampling algorithm. Subjectively I feel the same way, but listen to both and make your own choice.

  • The best conversion settings depend on your DAC and speakers. What are they?

2 Likes

I have a Lampizator Amber 3 DAC and Sonus faber Olympica 2 speakers.

So, I use upsample to device maximum resolution, that would take the upsampling load off my DAC, yes?

1 Like

Yes…
In the case of the iFi DAC that you have, with the Burr-Brown chipset , all 1-bit PDM (DSD) signal is routed directly to the output circuitry…, DSDxxx never gets routed through the PCM to multi-bit SDM (Sigma Delta Modulation) up-sampling circuity of the chipset before routing to the output circuitry as 1-bit PDM signal… All PCMxxx will be routed through the SDM process, but the higher-the sample-rate, the less conversion processing the chipset is taxed with… The interpretation of the resulting sound, is still subjective, however.

  • You would want to upsample to the max your DAC can input. Strangely I’ve seen DSD512 and DSD256 for this unit, but whichever it is, that’s what you want.

  • You probably want to use r8brain, which is generally thought to be the better upsampling/filtering software.

  • Among audiophile speakers, as far as I know only Vandersteens use linear phase crossovers. What’s that mean? Phase is timing. Linear phase means all frequencies take the same amount of time to pass through the crossover. (Why doesn’t everyone have linear phase crossovers? Because it causes unavoidable bumps, small but there, in frequency response at the crossover points.) You don’t have Vandersteens. So unless you have room equalization/correction software, you can experiment with settings other than linear phase and see what you like. If you do use such software, you want to keep the timing as is, so use linear phase. (At other phase settings, some frequencies pass through the filter slower than others, which is called “group delay.”)

  • You probably want to start off with the cutoff set as high as possible. No sense filtering out the highest harmonics.

  • You likely want to use the maximum setting for anti-aliasing, or whatever the setting that governs how sharply the filter cuts is called. That’s noise and distortion up there, no sense letting it through.

  • For the modulator setting you want B7, B8, or C (I’ve been told C and B7 are identical). These let through the least noise and distortion.

(Note when I talk about letting through noise and distortion, the levels from most of the modulators may be inaudible. But why not set things up to be as accurate as possible?)

2 Likes

Thanks, I’ve never played with the settings, they are default in R8Brain… But I’m willing to try…
The DAC does to 256, but being on a Mac, the 256 is greyed out, I suppose as per the p.o.p rules.
these are the settings.
Screenshot 2023-08-26 at 12.57.01

The one setting you might want to change is volume reduction before DSD upsampling, setting it to reduce volume by something like 3dB.

Some engineers like to record “hot.” When you go above max volume (0dB attenuation) while recording digitally, you get distortion. The recording will reproduce this distortion through “intersample overs” (the waveform goes above the 0dB max between samples). The safe volume reduction setting avoids these intersample overs.

1 Like

Thanks, done that, I suppose I won’t really notice anything if the original recording wasn’t hot… I understand the reasoning.

@Jud
Are you using the default R8Brain configuration, or have you made any changes?

What filter are you using on the iFi DAC?

Hi @Reynaldo , it’s been forever since I first used upsampling, so no idea of the defaults. :slightly_smiling_face: But my settings are upsampling with r8brain to DSD512, bandwidth 99.5, stop band attenuation 218, linear phase, B 8th order modulator (I sometimes switch between this and C, no particular reason, just playing around and if one subjectively strikes me as sounding better that day…), volume reduction -3dB.

Since I’m upsampling to the max input rate of the NEO iDSD, I don’t think the internal DAC filter selection matters at all - the DSD512 input should bypass the DAC chip and its filters and modulators entirely. Out of an excess of caution I have the filter set to Bit Perfect so the DAC is told not to try to employ its digital filtering, but I doubt this is actually needed.

1 Like

What DoP version are you setting…? You should be setting to DoP 1.1 and you should be able to up-sample/modulate PCMxxx to DSD256 via DoP 1.1…

This is the r8Brain set-up I am using with my TEAC UD-501 that utilizes Burr-Brown DACs:

I utilize the “A” type 8th order SDM filter… (I believe this is an apodizing filter) in concert with a FIR filter in the DAC (Fc = 90kHz, Gain = +0.3dB)

You’ll see that I don’t reduce the volume… ISP’s (Inter-Sample Overs) are real, however, I rarely detect these spurious events, When I down-convert DSDxxx to DXD 352.8KHz for HRTF processing, I apply ISP elimination processing… Generally, if you are using plug-in processing before modulating to DSDxxx there is good reason to reduce the volume before DSD upsampling by at least 3dB… Over the years of having this function available to apply to the file, lately, I have found no reason to reduce the volume, in conjunction with the Abbey Road Studio 3 HRTF virtualization AU plug-in.

Apodization in digital audio

An apodizing filter can be used in digital audio processing instead of the more common brick-wall filters, in order to reduce the pre- and post-ringing that the latter introduces.[1]
Apodization - Wikipedia

Where is the D.op 1.1 setting? I believe that’s what I’m using, just want to check.

What actually is Stop band attenuation?

The DoP setting is found in the DAC Input section of the settings…

The Stop Band is where the Low-pass filter cutoff is applied at the top-end and may also be applied to the low-end High Pass cut-off frequency… I don’t know if the low-end cut-off function is applied in the r8Brain algorithm… This is most likely associated to the Filter Type that is being applied… I’ve found that small adjustments in the Stop Band Fc makes a big difference in the high-end energy… Tune to taste.

Come to think about this a bit more…
I don’t remember if r8Brain actually allows the choice of Filter Types… What is showing in the screen-shot is what I was using in SoX… For some reason I sort of remember Damien saying something about this… This needs clarification…