summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-10-10 03:39:57 +1100
committernick_m <mainsbridge@gmail.com>2016-10-10 03:39:57 +1100
commit4faf44588f806eac46b5c7ae5cc8058fc47da3f1 (patch)
tree5a54dd61694eb04e7f15650cc592eb54f84458f7 /scripts
parent631c8afc668f8b57af21ca85332ac8f012a3f59e (diff)
Interpret start & length_beats properties as double rather than Evoral::Beats.
- Evoral::Beats operator!= would prevent an increment of start_beats by intervals of less than a tick, so its possible that other subtle problems existed due to this kind of thing.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/_vamp_audio_to_midi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/_vamp_audio_to_midi.lua b/scripts/_vamp_audio_to_midi.lua
index cf9b82c851..6af21c241f 100644
--- a/scripts/_vamp_audio_to_midi.lua
+++ b/scripts/_vamp_audio_to_midi.lua
@@ -17,7 +17,7 @@ function factory () return function ()
assert (ar and mr)
local a_off = ar:position ()
- local b_off = 4.0 * mr:pulse () - mr:start_beats ():to_double ()
+ local b_off = 4.0 * mr:pulse () - mr:start_beats ()
vamp:analyze (ar:to_readable (), 0, nil)
local fl = vamp:plugin ():getRemainingFeatures ():at (0)