description changes and stop jumping instructions if proc:isnil()
authorNikolaus Gullotta <nikolaus.gullotta@gmail.com>
Wed, 14 Mar 2018 19:51:37 +0000 (14:51 -0500)
committerNikolaus Gullotta <nikolaus.gullotta@gmail.com>
Fri, 16 Mar 2018 16:12:09 +0000 (11:12 -0500)
scripts/_store_recall_mixer.lua

index fc2eeef673b2ac66220c6915e637759186bdaaa2..651d5f2e2f8ac3e9648820e0c00fde4de803767a 100644 (file)
@@ -1,8 +1,8 @@
 ardour {
     ["type"] = "EditorAction",
     name = "Mixer Store",
-    author = "Mixbus Lua Taskforce",
-    description = [[]]
+    author = "Ardour Lua Taskforce",
+    description = [[Stores the current Mixer state as a file that can be recalled arbitrarily. Supports: processor settings, gain, trim, pan and processor ordering.]]
 }
 
 function factory() return function()
@@ -94,8 +94,7 @@ function factory() return function()
                 local old_order = ARDOUR.ProcessorList()
                 for k, v in pairs(instance["order"]) do
                     local proc = Session:processor_by_id(PBD.ID(v))
-                    if proc:isnil() then goto nextline end
-                    old_order:push_back(proc)
+                    if not(proc:isnil()) then old_order:push_back(proc) end
                 end
                 local rid = PBD.ID(instance["route_id"])
                 local rt = Session:route_by_id(rid)