add "for each track" snippet.
This commit is contained in:
parent
2e38195e5c
commit
5b60070034
11
scripts/s_foreach_track.lua
Normal file
11
scripts/s_foreach_track.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user