mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
Some more frame -> sample changes (in scripts)
This commit is contained in:
parent
2f65694b52
commit
338a07bc4c
5 changed files with 7 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ function factory () return function ()
|
|||
if mr:isnil () then goto next end
|
||||
|
||||
print (r:name (), "Pos:", r:position (), "Start:", r:start ())
|
||||
local bfc = ARDOUR.BeatsFramesConverter (Session:tempo_map (), r:position ())
|
||||
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 ()),
|
||||
|
|
@ -18,4 +18,3 @@ function factory () return function ()
|
|||
::next::
|
||||
end
|
||||
end end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue