ref: 60c8a734e7e7706bacd9e06501d2ee7d3973cea7
parent: 58a82d4b72d6fe1a8dff10a285ad60e24cc9edbc
author: Paul Brossier <piem@piem.org>
date: Mon Oct 29 11:20:46 EDT 2018
[py] slicing.py: fix for slices smaller than hop_size
--- a/python/lib/aubio/slicing.py
+++ b/python/lib/aubio/slicing.py
@@ -48,7 +48,7 @@
# 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)