summaryrefslogtreecommitdiff
path: root/scripts/tomsloop.lua
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-08-30 23:20:32 +0200
committerRobin Gareus <robin@gareus.org>2016-08-30 23:20:32 +0200
commit43078f7e888288cb2f124bf811cda3e1ad07e012 (patch)
treee52e83b0d0eb116ecf07cfbedd72a0f3915cf1df /scripts/tomsloop.lua
parentf4751f1018b1464f7d9556170c08a600e50b0be9 (diff)
correct comments and avoid /={4+}/
Diffstat (limited to 'scripts/tomsloop.lua')
-rw-r--r--scripts/tomsloop.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/tomsloop.lua b/scripts/tomsloop.lua
index 882815d26c..72e7607c01 100644
--- a/scripts/tomsloop.lua
+++ b/scripts/tomsloop.lua
@@ -5,13 +5,11 @@ ardour { ["type"] = "EditorAction", name = "Tom's Loop",
}
-- for minimal configuration in dialogue
--- ============================================================================
function action_params ()
return { ["times"] = { title = "Number of copies to add", default = "1"}, }
end
-- main method, every custom (i.e. non-ardour) method must be defined *inside* factory()
--- ============================================================================
function factory (params) return function ()
-- get options
local p = params or {}
@@ -126,9 +124,9 @@ function factory (params) return function ()
end
print ("bounced " .. n_regions_created .. " regions from loop range (" .. loop:length() .. " frames) to playhead @ frame # " .. playhead)
+ ::errorout::
-- when this script is called as an action, the output will be printed to the ardour log window
--- ============================================================================
function print_help()
print("")
print("---------------------------------------------------------------------")
@@ -276,6 +274,5 @@ function factory (params) return function ()
print("See also: Lua Action Bounce+Replace Regions")
print("")
end -- print_help()
- ::errorout::
-end -- factory()
-end -- end of lua script
+end -- end of anonymous action script function
+end -- end of script factory