Update Lua scripts, class-name change
This commit is contained in:
parent
2d680f3061
commit
c86f511e5e
@ -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…
Reference in New Issue
Block a user