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
48 # get hopsize new samples from source48 # get hopsize new samples from source
49 vec, read = _source.do_multi()49 vec, read = _source.do_multi()
50 # if the total number of frames read will exceed the next region start50 # 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]:
52 #print "getting", regions[0], "at", total_frames52 #print "getting", regions[0], "at", total_frames
53 # get next region53 # get next region
54 start_stamp, end_stamp = regions.pop(0)54 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