From d33423a8bdc3ad318fbe89e106f2a8bd73c138f8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 18 Jul 2019 13:11:17 +0200 Subject: [PATCH] Add session-util to create new session --- session_utils/new_session.cc | 242 +++++++++++++++++++++++++++++++++++ 1 file changed, 242 insertions(+) create mode 100644 session_utils/new_session.cc diff --git a/session_utils/new_session.cc b/session_utils/new_session.cc new file mode 100644 index 0000000000..2c03bc1850 --- /dev/null +++ b/session_utils/new_session.cc @@ -0,0 +1,242 @@ +#include +#include +#include + +#include + +#include "ardour/audioengine.h" +#include "ardour/filename_extensions.h" +#include "ardour/template_utils.h" + +#include "common.h" + +using namespace std; +using namespace ARDOUR; +using namespace SessionUtils; + +static void +usage (int status) +{ + // help2man compatible format (standard GNU help-text) + printf (UTILNAME " - create a new session from the commandline.\n\n"); + printf ("Usage: " UTILNAME " [ OPTIONS ] [session-name]\n\n"); + printf ("Options:\n\ + -L, --list-templates List available templates and exit\n\ + -h, --help Display this help and exit\n\ + -m, --master-channels Master-bus channel count (default 2)\n\ + -s, --samplerate Samplerate to use (default 48000)\n\ + -t, --template