mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Also move Lua scripts to share subfolder
This commit is contained in:
parent
bf649cd68a
commit
180843f9bd
129 changed files with 2 additions and 2 deletions
|
|
@ -1,22 +0,0 @@
|
|||
ardour { ["type"] = "Snippet", name = "Who Am I?" }
|
||||
|
||||
function factory() return function()
|
||||
|
||||
function whoami()
|
||||
--pcall is the lua equivalent
|
||||
--of try: ... catch: ...
|
||||
if not pcall(function() local first_check = Session:get_mixbus(0) end) then
|
||||
return "Ardour"
|
||||
else
|
||||
local second_check = Session:get_mixbus(11)
|
||||
if second_check:isnil() then
|
||||
return "Mixbus"
|
||||
else
|
||||
return "32C"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
print(whoami())
|
||||
|
||||
end end
|
||||
Loading…
Add table
Add a link
Reference in a new issue