History

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

Paul Brossier committed 12 years ago

Commit 6fbee461 parent 43206791 file · +1 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/slicing.py+1−2
@@ -31,8 +31,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, · 30 unmodified lines
31 31
32 def new_sink_name(source_base_name, timestamp, samplerate):32 def new_sink_name(source_base_name, timestamp, samplerate):
33 timestamp_seconds = timestamp / float(samplerate)33 timestamp_seconds = timestamp / float(samplerate)
34 #print source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'34 return source_base_name + "_%011.6f" % timestamp_seconds + '.wav'
35 return source_base_name + '_%02.3f' % (timestamp_seconds) + '.wav'
36 35
37 # reopen source file36 # reopen source file
38 s = source(source_file, samplerate, hopsize)37 s = source(source_file, samplerate, hopsize)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t