[py] [cut] use source.samplerate
authorPaul Brossier <piem@piem.org>
Mon, 29 Oct 2018 14:37:14 +0000 (15:37 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 29 Oct 2018 14:37:14 +0000 (15:37 +0100)
python/lib/aubio/cut.py

index dd1d136..8055f19 100644 (file)
@@ -101,7 +101,7 @@ def _cut_analyze(options):
 
     s = source(source_uri, samplerate, hopsize)
     if samplerate == 0:
-        samplerate = s.get_samplerate()
+        samplerate = s.samplerate
         options.samplerate = samplerate
 
     if options.beat: