From 60c8a734e7e7706bacd9e06501d2ee7d3973cea7 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 29 Oct 2018 15:20:46 +0100 Subject: [PATCH] [py] slicing.py: fix for slices smaller than hop_size --- python/lib/aubio/slicing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0