Resample Sessions

11 replies [Last post]
christophski
User offline. Last seen 7 hours 25 min ago. Offline
Joined: 2009-04-22

I've just got some new hardware which allows me to record at 48000 instead of 44100, but this means i need to resample my old sessions to 48000.
I've tried the resample_session.pl file that was suggested in a thread i found on this forum but it appears to be extremely old and looks for a /sounds directory that is no longer used in the latest versions of ardour. Does anybody know what can be done?

pleasebeus
pleasebeus's picture
User offline. Last seen 16 min ago. Offline
Joined: 2008-11-28

I'd like to know a simple way of doing this, too.

wavesound
User offline. Last seen 1 day 4 hours ago. Offline
Joined: 2006-04-23

I may be missing something here but Audacity will do this for you.

lowen
User offline. Last seen 4 weeks 1 day ago. Offline
Joined: 2009-07-30

A session in Ardour is a more complex than one in Audacity; there is a tool in the source distribution that does this, but it's command line only. See http://ardour.org/node/1216 and http://ardour.org/node/2913

christophski
User offline. Last seen 7 hours 25 min ago. Offline
Joined: 2009-04-22

Yes, I found that but whenever I use resample_session.pl it says something along the lines of "cannot find /sounds". I think it's looking for a folder that no longer exists in Ardour sessions. I also don't know perl so I'm clueless to editing the file :S

christophski
User offline. Last seen 7 hours 25 min ago. Offline
Joined: 2009-04-22

Sorry for the double post, but I worked out how to do it.
You need to create a folder called "sounds" within the session folder and move all the files from /interchance/(session name)/ folder to /sounds.
Next you need to create a fodler called "Automation" (just so the script doesn't complain of it's absence).
Then after running teh script you can move all the audio files back into /interchance/(session name)/.
Last thing to do is to open the (session name).ardour file and change sample-rate="44100" on line three to sample-rate="48000".

pleasebeus
pleasebeus's picture
User offline. Last seen 16 min ago. Offline
Joined: 2008-11-28

Excellent. Anyone know where the tools directory has gone? I can't find resample_session.pl anywhere...

paul
paul's picture
User offline. Last seen 37 min 17 sec ago. Offline
Joined: 2006-03-16

@pleasebeus: its only available in an SVN checkout. its not included in the tarball.

pleasebeus
pleasebeus's picture
User offline. Last seen 16 min ago. Offline
Joined: 2008-11-28

Got it; thanks Paul. For anyone else's convenience: http://viewcvs.ardour.org/index.cgi/ardour2/ardour2/branches/2.0-ongoing/tools/

Matt Francomb
Matt Francomb's picture
User offline. Last seen 3 hours 6 min ago. Offline
Joined: 2006-09-12

Wouldn't it be simpler just to make a symbolic link rather than moving the files around? i,e.

ln -s ./interchange/${session_name} ./sounds
paul
paul's picture
User offline. Last seen 37 min 17 sec ago. Offline
Joined: 2006-03-16

the existing script already tests for .../sounds and if not found it looks for the newer directory structure. so i am not sure what the problem is.

christophski
User offline. Last seen 7 hours 25 min ago. Offline
Joined: 2009-04-22

It seems to get stuck without a sounds directory before it even looks for the new directory structure.