ref: 53fbd58d81b7987225d4ee6d67857b8e689cc478
parent: 8e2f36a607e19683241bdd45894905346c9f9dea
author: Paul Brossier <piem@piem.org>
date: Thu Mar 23 10:57:14 EDT 2017
python/lib/aubio/cmd.py: fix timefuncs
--- a/python/lib/aubio/cmd.py
+++ b/python/lib/aubio/cmd.py
@@ -166,10 +166,10 @@
return options
def samples2seconds(n_frames, samplerate):
- return "%f\t" % (n_frames / float(a_source.samplerate))
+ return "%f\t" % (n_frames / float(samplerate))
def samples2milliseconds(n_frames, samplerate):
- return "%f\t" % (1000. * n_frames / float(a_source.samplerate))
+ return "%f\t" % (1000. * n_frames / float(samplerate))
def samples2samples(n_frames, samplerate):
return "%d\t" % n_frames