mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
correct comments and avoid /={4+}/
This commit is contained in:
parent
f4751f1018
commit
43078f7e88
1 changed files with 3 additions and 6 deletions
|
|
@ -5,13 +5,11 @@ ardour { ["type"] = "EditorAction", name = "Tom's Loop",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- for minimal configuration in dialogue
|
-- for minimal configuration in dialogue
|
||||||
-- ============================================================================
|
|
||||||
function action_params ()
|
function action_params ()
|
||||||
return { ["times"] = { title = "Number of copies to add", default = "1"}, }
|
return { ["times"] = { title = "Number of copies to add", default = "1"}, }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- main method, every custom (i.e. non-ardour) method must be defined *inside* factory()
|
-- main method, every custom (i.e. non-ardour) method must be defined *inside* factory()
|
||||||
-- ============================================================================
|
|
||||||
function factory (params) return function ()
|
function factory (params) return function ()
|
||||||
-- get options
|
-- get options
|
||||||
local p = params or {}
|
local p = params or {}
|
||||||
|
|
@ -126,9 +124,9 @@ function factory (params) return function ()
|
||||||
end
|
end
|
||||||
|
|
||||||
print ("bounced " .. n_regions_created .. " regions from loop range (" .. loop:length() .. " frames) to playhead @ frame # " .. playhead)
|
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
|
-- when this script is called as an action, the output will be printed to the ardour log window
|
||||||
-- ============================================================================
|
|
||||||
function print_help()
|
function print_help()
|
||||||
print("")
|
print("")
|
||||||
print("---------------------------------------------------------------------")
|
print("---------------------------------------------------------------------")
|
||||||
|
|
@ -276,6 +274,5 @@ function factory (params) return function ()
|
||||||
print("See also: Lua Action Bounce+Replace Regions")
|
print("See also: Lua Action Bounce+Replace Regions")
|
||||||
print("")
|
print("")
|
||||||
end -- print_help()
|
end -- print_help()
|
||||||
::errorout::
|
end -- end of anonymous action script function
|
||||||
end -- factory()
|
end -- end of script factory
|
||||||
end -- end of lua script
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue