From: Paul Brossier Date: Mon, 29 Oct 2018 14:20:46 +0000 (+0100) Subject: [py] slicing.py: fix for slices smaller than hop_size X-Git-Tag: 0.4.8~92^2~13^2~7 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=60c8a734e7e7706bacd9e06501d2ee7d3973cea7;p=aubio.git [py] slicing.py: fix for slices smaller than hop_size --- diff --git a/python/lib/aubio/slicing.py b/python/lib/aubio/slicing.py index 3f3602aa..a2a25198 100644 --- a/python/lib/aubio/slicing.py +++ b/python/lib/aubio/slicing.py @@ -48,7 +48,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, # get hopsize new samples from source vec, read = _source.do_multi() # if the total number of frames read will exceed the next region start - if len(regions) and total_frames + read >= regions[0][0]: + while len(regions) and total_frames + read >= regions[0][0]: #print "getting", regions[0], "at", total_frames # get next region start_stamp, end_stamp = regions.pop(0)