History

[py] slicing.py: fix for slices smaller than hop_size

Paul Brossier committed 8 years ago

Commit 60c8a731 parent 58a82d41 file · +1 −1Browse files

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

Unified · Split

python/lib/aubio/slicing.py+1−1
@@ -48,7 +48,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, · 47 unmodified lines
4848 # get hopsize new samples from source
4949 vec, read = _source.do_multi()
5050 # if the total number of frames read will exceed the next region start
51− if len(regions) and total_frames + read >= regions[0][0]:
51+ while len(regions) and total_frames + read >= regions[0][0]:
5252 #print "getting", regions[0], "at", total_frames
5353 # get next region
5454 start_stamp, end_stamp = regions.pop(0)

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