13
0

add "for each track" snippet.

This commit is contained in:
Robin Gareus 2016-04-07 22:13:00 +02:00
parent 2e38195e5c
commit 5b60070034

View File

@ -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