In case anyone else would find it useful, the script below, when combined with an appropriate template file, will create a new session from the template, named after the date-time, and open it in qtractor, ready for recording with no further ado. You should edit the variables per your own preferences.
---------------------------------------------------------------------------------------------------
#!/bin/bash
SESSION_NAME=`date +%Y%m%d-%H%M`
QTRACTOR_DIR="$HOME/qtractor"
SESSION_DIR="$QTRACTOR_DIR/$SESSION_NAME"
SESSION_FILE="$SESSION_DIR/$SESSION_NAME.qtr"
TEMPLATE_FILE="$HOME/.config/rncbc.org/template.qtt"
mkdir $SESSION_DIR
sed \
-e "s/<session version=\"\([^\"]*\)\" name=\"[^\"]*\">/<session version=\"\1\" name=\"$SESSION_NAME\">/" \
-e "s?<directory>.*</directory>?<directory>$SESSION_DIR</directory>?" \
$TEMPLATE_FILE > $SESSION_FILE
qtractor "$SESSION_FILE" &
Copyright (C) 2006-2024 rncbc aka Rui Nuno Capela. All rights reserved.
Powered by Drupal
Recent comments
3 hours 11 min ago
6 hours 25 min ago
1 day 5 hours ago
1 day 23 hours ago
3 days 19 hours ago
3 days 21 hours ago
3 days 21 hours ago
4 days 7 hours ago
4 days 19 hours ago
5 days 3 hours ago