From 0a4090965576fc55ae9d67da3dd93855a0b0134d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 18 Feb 2017 02:25:28 +0100 Subject: [PATCH] Bundle Audio to MIDI Lua script --- ...udio_to_midi.lua => vamp_audio_to_midi.lua} | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) rename scripts/{_vamp_audio_to_midi.lua => vamp_audio_to_midi.lua} (76%) diff --git a/scripts/_vamp_audio_to_midi.lua b/scripts/vamp_audio_to_midi.lua similarity index 76% rename from scripts/_vamp_audio_to_midi.lua rename to scripts/vamp_audio_to_midi.lua index f2395eb40c..79fc32ac83 100644 --- a/scripts/_vamp_audio_to_midi.lua +++ b/scripts/vamp_audio_to_midi.lua @@ -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