diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-16 01:13:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-16 01:17:35 +0200 |
commit | bd40b9132cbac2d2b79ba0ef480bd41d837f8f71 (patch) | |
tree | 7e420e0eb68d52019c774b04adccd5f3b9ae239d /scripts | |
parent | 26c88b2a3ea2dba06197c8f353dfa3af25b342e0 (diff) |
Revert ongoing SessionDialog changes for 5.11 release.5.11
To be reverted again after the release. This temporarily reverts
26c88b2, c67d1d4, 5e41293, 8b7df13, ff61435, 1039894, 8717c0d
and GUI parts of 47d86cf
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/session_template_advanced.lua | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/scripts/session_template_advanced.lua b/scripts/session_template_advanced.lua deleted file mode 100644 index 3e8d95f5b2..0000000000 --- a/scripts/session_template_advanced.lua +++ /dev/null @@ -1,59 +0,0 @@ -ardour { - ["type"] = "SessionSetup", - name = "Advanced Session", - description = [[Allows to configure master-bus and autoconnect]], - master_bus = 0 -} - -function session_setup () - - local auto_connect_in = { - [0] = "Manually", - [1] = "automatically to physical inputs", - } - - local auto_connect_out = { - [0] = "Manually", - [1] = "automatically to physical outputs", - [2] = "automatically to master bus", - } - - local dialog_options = { - { type = "heading", title = "Customize Session: " .. Session:name () }, - { type = "number", key = "master", title = "Master bus channels", min = 0, max = 24, step = 1, digits = 0, default = 2 }, - { type = "checkbox", key = "monitor", title = "Add monitor section", default = ARDOUR.config():get_use_monitor_bus () }, - { type = "dropdown", key = "ac_input", title = "Autoconnect Inputs", - values = { - [auto_connect_in[0]] = 0, - [auto_connect_in[1]] = 1, - }, - default = auto_connect_in[ARDOUR.config():get_input_auto_connect ()] - }, - { type = "dropdown", key = "ac_output", title = "Autoconnect Outputs", - values = { - [auto_connect_out[0]] = 0, - [auto_connect_out[1]] = 1, - [auto_connect_out[2]] = 2, - }, - default = auto_connect_out[ARDOUR.config():get_output_auto_connect ()] - }, - } - - local dlg = LuaDialog.Dialog ("Template Setup", dialog_options) - local rv = dlg:run() - if (not rv) then return end - - if rv['master'] > 0 then - local count = ARDOUR.ChanCount ( ARDOUR.DataType("audio"), rv['master']) - Session:add_master_bus (count) - end - - if rv['monitor'] then - Session:add_monitor_section () - end - - ARDOUR.config():set_input_auto_connect (rv['ac_input']) - ARDOUR.config():set_output_auto_connect (rv['ac_output']) - - Session:save_state(""); -end |