Changing the sampling rate in Ardour 8.9

I am currently running Ubuntu Studio 24.04 with Ardour 8.9 installed. The default sample rate is 48000. I would like to change it to 44100. I’ve tried using both Jack/Pipewire and ALSA; however I cannot change the rate even if I set the sample rate to 44100 in QJackCtl. I checked the pipewire config in /usr/pipewire, and added 44100 as an option. I still cannot change it. Any suggestions as to what to do?

There’s a very reasonable chance that you have a device that can only do 48kHz - they are very common these days. What makes you think it can support 44.1kHz ?

QJackCtl can set the startup setting for jackd, but has no effect on pipewire-jack. Since you mention a config file in /usr/pipewire I assume you are using pipewire + pipewire-jack and not jackd.

When I was running Ubuntu Studio 22.04, I routinely set Ardour to
44.1kHz. And, I run Mixbus 10; if I set this to use ALSA as the engine,
I can set it to 44.1kHz.

Yes I am using pipewire + pipewire-jack. When I looked at the pipewire-jack config file, I saw that only 48kHz was listed. That may be the problem. I’ll have to research how to add 44.1kHz, or accept Ardour resampling the audio files.

Hi,

With ALSA you are blissfully free of PulseAudio, PipeWire and JACK config limitations and only limited to what your hardware supports. However PipeWire supports using metadata commands to change your sample rate and buffers on the fly without changing your system-wide configs. How this works is… use your computer with the default PipeWire settings for regular desktop Audio, when you decide to record you use a metadata command to tell PipeWire to run at 44.1 instead of 48 and then record away at 44.1 with PipeWire JACK… I don’t know how Ubuntu Studio handles this, AV Linux has a simple UI to set it but you can also just run the commands in a terminal to get started and see if this works for you:

More info: Very easy way to set Pipewire sample rate and buffer size defaults! - LinuxMusicians

1 Like

An alternative to GMaq’s suggestion is to start Ardour from the command line like this
pw-jack -p 512 -s 44100 /path/to/Ardour8

-p is “periods in samples” (same as Frames/Periods in QJackCtl) and -s is the sample rate

I thought pw-jack was originally made so that if you had jackd and pipewire installed you could make sure you used pipewire instead of jackd. Is it still installed if you only have pipewire-jack and not jackd?

It’s installed if you compile yourself at least. Whether your favorite distro installs it depends on the package manager; maybe it’s not in the default install but in some pipewire-tools package or something.

Yes, if you don’t have jackd installed you shouldn’t be needing it for making sure Ardour uses pipewire-jack but if you need to change the periods or sample rate it’s a bit less typing and somewhat easier to remember than “pw-metadata -n settings 0 clock force-quantum 512 ; pw-metadata -n settings 0 clock.force-rate 441000” :slight_smile:

Especially if you only need it for one specific project. pw-metadata is a persistent change, I believe, whereas pw-jack only changes that particular run.

In my experience it is not persistent across reboots (maybe that isn’t what you meant). But when you make a change yes it is persistent in your running Desktop session until you make a new metadata change. With a GUI this is very easy, I thought Ubuntu Studio had ‘Studio Controls’ for this kind of stuff?

Yeah, I meant until the next metadata change or reboot.

Ubuntu Studio 24.04 has replaced Studio Controls with Audio Configuration. You can set Pipewire quantum and sample rate from there.

2 Likes

I was looking for a way to switch this myself on Ubuntu Studio 24.04 and this worked. I just didn’t know what it was called so I couldn’t find it.

Great! Glad it worked for you.