sciurius
(Sciurius)
May 25, 2024, 3:29pm
#1
Given the following setup (Linux).
SongFolder
SongFolder/Audio
SongFolder/Audio/take1.wav
SongFolder/Audio/take2.wav
In SongFolder, I run ardour8
cd SongFolder
ardour8 -N ./MySong
This creates an Ardour project MySong
.
In Ardour, I import the files from the Audio
folder, copying them into the session.
Save and Quit
The Ardour session file, ./MySong/MySong.ardour
now contains
<Option name="audio-search-path" value="/full/path/to/SongFolder/MySong/interchange/The_Granite_Gaze/audiofiles"/>
I would have expected an empty search path (since it is the default), or at most a relative path (e.g. interchange/audiofiles
).
What did I do wrong?
seablade
(Seablade)
May 25, 2024, 3:47pm
#2
How are you importing? Drag and Drop, Session>Import, or something else?
Seablade
sciurius
(Sciurius)
May 25, 2024, 5:09pm
#3
Session > Import (Ctrl-I) with “copy audio files to session”.
seablade
(Seablade)
May 25, 2024, 5:15pm
#4
What filesystem is your session on?
Seablade
sciurius
(Sciurius)
May 25, 2024, 5:26pm
#5
Btrfs. But I also see this on ext4 and NFS.
sciurius
(Sciurius)
May 25, 2024, 7:15pm
#6
I ran a series of tests on different file systems and directories, and accidentally found the solution .
If the /path/to/session
is a full (absolute) path, it works. The session file will not contain absolute path names.
If, however, the path is a relative path, e.g. ./to/session
, all paths in the session file will be absolute.
1 Like
seablade
(Seablade)
May 26, 2024, 1:59am
#8
Interesting, meaning the ‘/path/to/session’ when you run the ardour8 -N /path/to/session/
command?
Seablade
sciurius
(Sciurius)
May 26, 2024, 8:32am
#9
Create the song:
cd /tmp/SongFolder
ardour8 -N /tmp/SongFolder/MySong
after saving, MySong.ardour
contains:
<Option name="audio-search-path" value=""/>
Change something, using full path:
ardour8 /tmp/SongFolder/MySong
after saving, MySong.ardour
still contains:
<Option name="audio-search-path" value=""/>
However,
cd /tmp/SongFolder
ardour8 -N ./MySong
Now MySong.ardour
contains:
<Option name="audio-search-path" value="/tmp/SongFolder/MySong/interchange/MySong/audiofiles"/>
It will stay at that value, even when revisited with full path name.
Note that
ardour8 -N MySong
will create a session at the location specified with default-session-parent-dir
in the ardour config, not at the current directory in the file system. Created (and visited) this way, the audio-search-path
will stay default (empty).
Also note that the -N
option merely verifies there is no such session yet.
sciurius
(Sciurius)
May 26, 2024, 11:52am
#10
I would find a command line option to specify the session parent dir very useful. E.g., for a simple wrapper:
#!/bin/sh
exec /bin/ardour8 --session-parent-dir=`pwd` ${+"$@"}
sciurius
(Sciurius)
May 28, 2024, 7:22am
#11
system
(system)
closed
August 27, 2024, 1:22pm
#12
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.