projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1200a
)
python/lib/aubio/slicing.py: make sure we get a list of regions (python3, see #33)
author
Paul Brossier
<piem@piem.org>
Mon, 18 Apr 2016 21:21:31 +0000
(23:21 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 18 Apr 2016 21:21:31 +0000
(23:21 +0200)
python/lib/aubio/slicing.py
patch
|
blob
|
history
diff --git
a/python/lib/aubio/slicing.py
b/python/lib/aubio/slicing.py
index
52d36ea
..
93bd0c7
100644
(file)
--- a/
python/lib/aubio/slicing.py
+++ b/
python/lib/aubio/slicing.py
@@
-22,7
+22,7
@@
def slice_source_at_stamps(source_file, timestamps, timestamps_end = None,
else:
timestamps_end = [t - 1 for t in timestamps[1:] ] + [ max_timestamp ]
- regions =
zip(timestamps, timestamps_end
)
+ regions =
list(zip(timestamps, timestamps_end)
)
#print regions
source_base_name, source_ext = os.path.splitext(os.path.basename(source_file))