summaryrefslogtreecommitdiff
path: root/share/scripts/s_foreach_track.lua
diff options
context:
space:
mode:
Diffstat (limited to 'share/scripts/s_foreach_track.lua')
-rw-r--r--share/scripts/s_foreach_track.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/scripts/s_foreach_track.lua b/share/scripts/s_foreach_track.lua
new file mode 100644
index 0000000000..c1c6ed8da1
--- /dev/null
+++ b/share/scripts/s_foreach_track.lua
@@ -0,0 +1,10 @@
+ardour { ["type"] = "Snippet", name = "Foreach Track" }
+
+function factory () return function ()
+ for r in Session:get_tracks():iter() do
+ print (r:name())
+ -- see http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Track
+ -- for available methods e.g.
+ r:set_active (true, nil)
+ end
+end end