summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-08-23 12:13:40 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-08-23 12:13:40 -0500
commit6f0dec2bd8ebf9725dbcd6f2e4de3a5459cde1b1 (patch)
tree18eb6e7af456c40896ce89484d757ad05ce60d16 /scripts
parent2961db3b6fe89cdc7912138752634dae5e29b8ec (diff)
Track Templates: remove uninteresting script.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/route_template_interactive_audio.lua51
1 files changed, 0 insertions, 51 deletions
diff --git a/scripts/route_template_interactive_audio.lua b/scripts/route_template_interactive_audio.lua
deleted file mode 100644
index 99cdf7f3cb..0000000000
--- a/scripts/route_template_interactive_audio.lua
+++ /dev/null
@@ -1,51 +0,0 @@
-ardour {
- ["type"] = "EditorAction",
- name = "Create Audio Tracks Interactively",
- description = [[
-This template creates audio tracks.
-
-You will be prompted for:
-... the number of tracks to add
-... the name of the tracks ( default: Audio %d )
-... whether they are mono or stereo (default mono)
-... whether to record-arm the tracks (default: no)
-]]
-}
-
-function route_setup ()
- return
- {
- ['Insert_at'] = ARDOUR.PresentationInfo.max_order;
- }
-end
-
-function factory (params) return function ()
- local p = params or route_setup ()
- local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order;
-
- local e = Session:engine()
- -- from the engine's POV readable/capture ports are "outputs"
- local _, t = e:get_backend_ports ("", ARDOUR.DataType("audio"), ARDOUR.PortFlags.IsOutput | ARDOUR.PortFlags.IsPhysical, C.StringVector())
- -- table 't' holds argument references. t[4] is the C.StringVector (return value)
- local tracks = t[4]:size();
-
- local dialog_options = {
- { type = "number", key = "tracks", title = "Create Tracks", min = 1, max = 128, step = 1, digits = 0, default = tracks },
- { type = "checkbox", key = "recarm", default = false, title = "Record Arm Tracks" },
- }
-
- local dlg = LuaDialog.Dialog ("Template Setup", dialog_options)
- local rv = dlg:run()
- if (not rv or rv['tracks'] == 0) then
- return
- end
-
- -- create tracks
- local tl = Session:new_audio_track (1, 1, nil, rv['tracks'], "", insert_at, ARDOUR.TrackMode.Normal)
- -- and optionally record-arm them
- if rv['recarm'] then
- for track in tl:iter() do
- track:rec_enable_control ():set_value (1, PBD.GroupControlDisposition.NoGroup)
- end
- end
-end end