mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Update Lua scripts, class-name change
This commit is contained in:
parent
2d680f3061
commit
c86f511e5e
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ function factory () return function ()
|
|||
-- prepare progress dialog
|
||||
local progress_total = 0;
|
||||
local progress_part = 0
|
||||
local pdialog = LuaDialog.LuaProgressWindow ("Audio to MIDI", true)
|
||||
local pdialog = LuaDialog.ProgressWindow ("Audio to MIDI", true)
|
||||
function cb (_, pos)
|
||||
return pdialog:progress ((pos + progress_part) / progress_total, "Analyzing")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function factory () return function ()
|
|||
midi_region:set_initial_position(start_time)
|
||||
midi_region:set_length(end_time - start_time, 0)
|
||||
|
||||
local pdialog = LuaDialog.LuaProgressWindow ("Audio to MIDI", true)
|
||||
local pdialog = LuaDialog.ProgressWindow ("Audio to MIDI", true)
|
||||
function progress (_, pos)
|
||||
return pdialog:progress ((cur_pos + pos) / max_pos, "Analyzing")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue