13
0

Update Lua scripts, class-name change

This commit is contained in:
Robin Gareus 2019-09-02 15:45:14 +02:00
parent 2d680f3061
commit c86f511e5e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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