Also move Lua scripts to share subfolder

This commit is contained in:
Robin Gareus 2020-02-23 20:48:02 +01:00
parent bf649cd68a
commit 180843f9bd
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
129 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,20 @@
ardour { ["type"] = "Snippet", name = "Dump MIDI Region" }
function factory () return function ()
local sel = Editor:get_selection ()
for r in sel.regions:regionlist ():iter () do
local mr = r:to_midiregion ()
if mr:isnil () then goto next end
print (r:name (), "Pos:", r:position (), "Start:", r:start ())
local bfc = ARDOUR.BeatsSamplesConverter (Session:tempo_map (), r:position ())
local nl = ARDOUR.LuaAPI.note_list (mr:model ())
for n in nl:iter () do
print (" Note @", bfc:to (n:time ()),
ARDOUR.ParameterDescriptor.midi_note_name (n:note ()),
"Vel:", n:velocity ())
end
print ("----")
::next::
end
end end