How do I convert a session from one sample rate to another?


(Ardour Fa3cv) #1

From the Googling I’ve done, I don’t think there’s an easy way to convert, say, 44.1k session into a 48k session…

However, there have to be some shortcuts. I already know about exporting midi tracks which I can then import into the new version. What about CD and location markers? That’s my biggest headache right now. I have 40 sessions to convert and any shortcut would be very helpful.


(Paul Davis) #2

There’s no shortcut. Ardour 2.x had a script that could convert a session. But since then, given the absolutely central role of sample rate when working with digital audio, Ardour has assumed that you get the SR right first time. This won’t change at least until the “nutempo” work (which involves a complete change in how we represent time) becomes part of the regular codebase.


(Ardour Fa3cv) #3

Dang. Didn’t realize so many devices were 48k only or 48k-based. Thanks anyway.

Edit: Plugins (Guitarix) too.


(Ardour Fa3cv) #4

Ok, I wasn’t willing to take “no” for an answer on this and glad I didn’t. You can go into an existing session file (with a text editor), find the Locations tag, copy all the marker information from there, then paste it into the new session. (I don’t know if it matters, but I left the start/end information tag alone in the new session).

It looks like I’ll have to adjust the markers since they got samplerate-skewed, but that’s a million times better than typing them all out again.

Hope this is helpful to others.


(Chris) #5

Aren’t position markers by sample position? If so your positions will be 17% off from where you intended, won’t they? Is that what you meant by markers get samplerate-skewed?

And what did you do about all the session audio files? Did you run sample rate conversion by hand on those (or shell script, I guess, if you were trying to change a few dozen projects at once)?


(Ardour Fa3cv) #6

Yes the markers were off and takes a little effort to slide them to the correct spot for each song, but that’s far better than typing them all again.

I don’t have any audio files in my sessions, just MIDI, so it worked out for me. Not sure what you’d do with audio files but it would probably involve ffmpeg.