Add new comment

Permalink

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" &

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.