mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +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
|
-- prepare progress dialog
|
||||||
local progress_total = 0;
|
local progress_total = 0;
|
||||||
local progress_part = 0
|
local progress_part = 0
|
||||||
local pdialog = LuaDialog.LuaProgressWindow ("Audio to MIDI", true)
|
local pdialog = LuaDialog.ProgressWindow ("Audio to MIDI", true)
|
||||||
function cb (_, pos)
|
function cb (_, pos)
|
||||||
return pdialog:progress ((pos + progress_part) / progress_total, "Analyzing")
|
return pdialog:progress ((pos + progress_part) / progress_total, "Analyzing")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ function factory () return function ()
|
||||||
midi_region:set_initial_position(start_time)
|
midi_region:set_initial_position(start_time)
|
||||||
midi_region:set_length(end_time - start_time, 0)
|
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)
|
function progress (_, pos)
|
||||||
return pdialog:progress ((cur_pos + pos) / max_pos, "Analyzing")
|
return pdialog:progress ((cur_pos + pos) / max_pos, "Analyzing")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue