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