13
0

Bundle Audio to MIDI Lua script

This commit is contained in:
Robin Gareus 2017-02-18 02:25:28 +01:00
parent 2c992c093f
commit 0a40909655

View File

@ -1,5 +1,17 @@
ardour { ["type"] = "EditorAction", name = "Vamp Audio to MIDI",
description = "analyze audio from selected audio region to selected midi region" }
ardour {
["type"] = "EditorAction",
name = "Polyphonic Audio to MIDI",
license = "MIT",
author = "Ardour Team",
description = [[
Analyze audio from the selected audio region to a selected MIDI region.
A MIDI region on the target track will have to be created first (use the pen tool).
This script uses the Polyphonic Transcription VAMP plugin from Queen Mary Univ, London.
The plugin works best at 44.1KHz input sample rate, and is tuned for piano and guitar music. Velocity is not estimated.
]]
}
function factory () return function ()
local sel = Editor:get_selection ()
@ -21,7 +33,7 @@ function factory () return function ()
if et > end_time then
end_time = et
end
table.insert(audio_regions, r)
table.insert(audio_regions, r)
else
midi_region = r:to_midiregion()
end