projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a82d4
)
[py] slicing.py: fix for slices smaller than hop_size
author
Paul Brossier
<piem@piem.org>
Mon, 29 Oct 2018 14:20:46 +0000
(15:20 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 29 Oct 2018 14:20:46 +0000
(15:20 +0100)
python/lib/aubio/slicing.py
patch
|
blob
|
history
diff --git
a/python/lib/aubio/slicing.py
b/python/lib/aubio/slicing.py
index
3f3602a
..
a2a2519
100644
(file)
--- 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)