1 ardour { ["type"] = "Snippet", name = "Who Am I?" }
3 function factory() return function()
6 --pcall is the lua equivalent
7 --of try: ... catch: ...
8 if not pcall(function() local first_check = Session:get_mixbus(0) end) then
11 local second_check = Session:get_mixbus(11)
12 if second_check:isnil() then