ref: 2bf530e070a005629fe0985a4945c491c4c8889a
parent: 8f1b354138990d86843d88a53738ce9d96de8aa9
author: Paul Brossier <piem@piem.org>
date: Sun Apr 16 07:37:54 EDT 2017
python/lib/aubio/cut.py: pass samplerate to onset or tempo
--- a/python/lib/aubio/cut.py
+++ b/python/lib/aubio/cut.py
@@ -153,9 +153,9 @@
if samplerate == 0: samplerate = s.get_samplerate()
if options.beat:
- o = tempo(options.onset_method, bufsize, hopsize)
+ o = tempo(options.onset_method, bufsize, hopsize, samplerate=samplerate)
else:
- o = onset(options.onset_method, bufsize, hopsize)
+ o = onset(options.onset_method, bufsize, hopsize, samplerate=samplerate)
if options.minioi:
if options.minioi.endswith('ms'):
o.set_minioi_ms(int(options.minioi[:-2]))