ref: 6fbee46a8857d89418db3712d8dcd9478d399ed4
parent: 43206799c120845686eb1a6f4154199146dc1644
author: Paul Brossier <piem@piem.org>
date: Sat Jan 11 22:09:45 EST 2014
python/lib/aubio/slicing.py: fix zero padding in slice names
--- a/python/lib/aubio/slicing.py
+++ b/python/lib/aubio/slicing.py
@@ -31,8 +31,7 @@
def new_sink_name(source_base_name, timestamp, samplerate):
timestamp_seconds = timestamp / float(samplerate)
- #print source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'
- return source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'
+ return source_base_name + "_%011.6f" % timestamp_seconds + '.wav'
# reopen source file
s = source(source_file, samplerate, hopsize)