jack audioadapter: Resampling with q0 ... q4?

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

jack audioadapter: Resampling with q0 ... q4?

Post by bluebell »

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?

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

@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: 381
Joined: Sun May 28, 2017 3:52 pm

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

Post by Jack Winter »

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: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post by bluebell »

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.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post by bluebell »

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

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post by bluebell »

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.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

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

Post by khz »

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.
Post Reply