Revert "update lua script to follow API change (bb459a2e7d)"

This reverts commit f09e9347e1.
because the new-midi branch wasn't merged, yet
This commit is contained in:
Robin Gareus 2016-11-10 17:32:03 +01:00
parent ec12fccf08
commit ae63243bf3

View File

@ -32,7 +32,7 @@ function factory () return function ()
for i,ar in pairs(audio_regions) do
local a_off = ar:position ()
local b_off = midi_region:pos_beats () - midi_region:start_beats ()
local b_off = 4.0 * midi_region:pulse () - midi_region:start_beats ()
vamp:analyze (ar:to_readable (), 0, nil)
local fl = vamp:plugin ():getRemainingFeatures ():at (0)