jack audioadapter: Resampling with q0 ... q4?

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

User avatar
bluebell
Established Member
Posts: 782
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

jack audioadapter: Resampling with q0 ... q4?

Postby bluebell » Wed Aug 15, 2018 2:27 pm

I use a 2nd audio interface on my jackd with

Code: Select all

jack_load -i "-dhw:2 -q0 -n2 -p128 -r48000" 2i2 audioadapter


I can use the q-parm (quality) up to 4. 0 means linear interpolation, 4 means sinc best quality and a whole bunch of CPU load that needs -p512 (as I found in jackd's source code).

The resampling is only needed because the 2 interfaces cannot be synced. But since the signal gets resampled from 48000 to 48000 I doubt that the quality parm is important. There is nothing to be interpolated as I understand.

So I guess -q0 is perfect in this case. I can't hear a difference to -q4, though. What do you think?

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: jack audioadapter: Resampling with q0 ... q4?

Postby falkTX » Wed Aug 15, 2018 4:34 pm

Without going through the code to check, the best way to check yourself is just a spectrum analyzer I think.

But I believe the quality in this case should be irrelevant yeah.
Just dont take it as certain, I did not check the code :P

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Wed Aug 15, 2018 4:54 pm

It gives you the magic binary code music that catapults your music into antimatter, ~Luzifer_hack ;-)

No, I have no idea. I think a good sound card brings more with less CPU load.
Shm do you use? RAM instead of hard disk.
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Sun Aug 19, 2018 8:18 am

The previous post was more of a ~humor. ;-)

Is this possibly due to a higher (=better) resolution of the floating point number (https://en.wikipedia.org/wiki/Floating-point_arithmetic), which of course also means a higher calculation effort (higher CPU load)?
This improves the calculation of the individual music processing steps (real, close to, for example, music to be realized with analog hardware), which enables an exact / more precise reproduction of your originally intended / wanted music?
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Thu Aug 30, 2018 7:53 am

@q-parm Does anyone have any background knowledge?
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

Jack Winter
Established Member
Posts: 293
Joined: Sun May 28, 2017 3:52 pm

Re: jack audioadapter: Resampling with q0 ... q4?

Postby Jack Winter » Thu Aug 30, 2018 9:05 am

khz wrote:@q-parm Does anyone have any background knowledge?

Default is q=0 and the lowest, and q=4 the highest quality. It uses the Secret Rabbit Code aka libsamplerate. A list of what the option choses:

  • q=0: SRC_LINEAR
  • q=1: SRC_ZERO_ORDER_HOLD
  • q=2: SRC_SINC_FASTEST
  • q=3: SRC_SINC_MEDIUM_QUALITY
  • q=4: SRC_SINC_BEST_QUALITY

You can see the results of a few tests at: http://src.infinitewave.ca/
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Thu Aug 30, 2018 9:17 am

THX4--info \o/
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

User avatar
bluebell
Established Member
Posts: 782
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: jack audioadapter: Resampling with q0 ... q4?

Postby bluebell » Fri Aug 31, 2018 1:59 pm

But this doesn't help much in the special case of resampling from 48000 to 48000 to work around the missing sync of two audio interfaces. Even -q0 sounds fine for me.

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Fri Aug 31, 2018 5:33 pm

I synchronized my RME cards with SPDIF. The cards also have a word clock and an internal sync port.
Is there anything about this in the manual of your used sound card?
(Or do you mean something else?)
https://en.wikipedia.org/wiki/Word_clock
https://www.rme-audio.de/english/techinfo/sync.htm (German: https://www.rme-audio.de/techinfo/sync.htm); (https://www.rme-audio.de/download/hdspeaio_e.pdf)
http://manual.ardour.org/synchronization/
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

User avatar
bluebell
Established Member
Posts: 782
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: jack audioadapter: Resampling with q0 ... q4?

Postby bluebell » Sat Sep 01, 2018 9:08 am

I use 2 Focusrite Scarletts (USB). They can't be synchronized so I have to load audioadapter or use other stuff that does resampling.

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Sat Sep 01, 2018 1:00 pm

I think you need to synchronize the soundcards over one of the possibilities mentioned above. If it doesn't offer your sound card it won't work. The audioadapter does not do this. IMHO
I have audioadapter +
khz wrote:I synchronized my RME cards with SPDIF. The cards also have a word clock and an internal sync port.
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.

User avatar
bluebell
Established Member
Posts: 782
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: jack audioadapter: Resampling with q0 ... q4?

Postby bluebell » Sun Sep 02, 2018 11:40 am

khz wrote:I think you need to synchronize the soundcards over one of the possibilities mentioned above. If it doesn't offer your sound card it won't work. The audioadapter does not do this. IMHO
I have audioadapter +
khz wrote:I synchronized my RME cards with SPDIF. The cards also have a word clock and an internal sync port.


Jackd's audioadapter, alsa_out, zita_j2a are workarounds for those cases when the audio adapters cannot be synced. I am happy that there are such workarounds.

User avatar
khz
Established Member
Posts: 877
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: jack audioadapter: Resampling with q0 ... q4?

Postby khz » Sun Sep 02, 2018 12:40 pm

I am also glad that there are such workarounds.
In the audio field I have little knowledge. That's why I find sharing knowledge so excellent.
FZ - Does humor belongs in Music?
GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
    I don't care about the freedom of speech because I have nothing to say.


Return to “System Tuning and Configuration”

Who is online

Users browsing this forum: No registered users and 2 guests