From c8969f8ee1f4b4ce8be107e2a0b7777cc7325d39 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 8 Oct 2012 11:34:43 +0100 Subject: [PATCH] Claudia: Add Qtractor template --- data/templates/Qtractor.qtr | 98 +++++++++++++++++++++++++++++++++++++ src/claudia_launcher.py | 14 ++++++ 2 files changed, 112 insertions(+) create mode 100644 data/templates/Qtractor.qtr diff --git a/data/templates/Qtractor.qtr b/data/templates/Qtractor.qtr new file mode 100644 index 0000000..cc2cb9a --- /dev/null +++ b/data/templates/Qtractor.qtr @@ -0,0 +1,98 @@ + + + + X_FOLDER_X-CLAUDIA-X_FOLDER_X + + X_SR_X-CLAUDIA-X_SR_X + X_BPM_X-CLAUDIA-X_BPM_X + 960 + 4 + 2 + + + 0 + 0 + 0 + 0 + + + + + + + + + duplex + + + 0 + 2 + 1 + 1 + 0 + + + + + system + capture_1 + + + system + capture_2 + + + 1 + 0 + + + + + system + playback_1 + + + system + playback_2 + + + + + + + duplex + 127 + duplex + none + + + 0 + 1 + 0 + + + 0 + + + 1 + 0 + + + 0 + + + + + + + + 32 + 100 + 100 + 4 + 0 + 0 + + + + diff --git a/src/claudia_launcher.py b/src/claudia_launcher.py index 1b57d34..017ded9 100755 --- a/src/claudia_launcher.py +++ b/src/claudia_launcher.py @@ -434,6 +434,20 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW): tmplte_cmd = binary tmplte_cmd += " '%s'" % (os.path.basename(tmplte_file) if self.callback_isLadishRoom() else tmplte_file) + elif app == "qtractor": + tmplte_file = os.path.join(proj_folder, "Qtractor_%i.qtr" % rand_check) + + # Create template + os.system("cp '%s' '%s'" % (os.path.join(tmplte_dir, "Qtractor.qtr"), tmplte_file)) + + tmplte_cmd = binary + tmplte_cmd += " '%s'" % (os.path.basename(tmplte_file) if self.callback_isLadishRoom() else tmplte_file) + + if self.callback_isLadishRoom(): + tmplte_lvl = "jacksession" + else: + tmplte_lvl = "1" + elif app == "calfjackhost": tmplte_file = os.path.join(proj_folder, "CalfJackHost_%i" % rand_check)