Changeset 6fbee46


Ignore:
Timestamp:
Jan 12, 2014, 8:09:45 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
35a44e9
Parents:
4320679
Message:

python/lib/aubio/slicing.py: fix zero padding in slice names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    r4320679 r6fbee46  
    3232    def new_sink_name(source_base_name, timestamp, samplerate):
    3333        timestamp_seconds = timestamp / float(samplerate)
    34         #print source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'
    35         return source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'
     34        return source_base_name + "_%011.6f" % timestamp_seconds + '.wav'
    3635
    3736    # reopen source file
Note: See TracChangeset for help on using the changeset viewer.