projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e38195
)
add "for each track" snippet.
author
Robin Gareus
<robin@gareus.org>
Thu, 7 Apr 2016 20:13:00 +0000
(22:13 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 7 Apr 2016 20:13:00 +0000
(22:13 +0200)
scripts/s_foreach_track.lua
[new file with mode: 0644]
patch
|
blob
diff --git a/scripts/s_foreach_track.lua
b/scripts/s_foreach_track.lua
new file mode 100644
(file)
index 0000000..
7b5d051
--- /dev/null
+++ b/
scripts/s_foreach_track.lua
@@ -0,0
+1,11
@@
+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