shithub: aubio

Download patch

ref: 35a44e99153e68aa5c7ac8eb5d5dc0b2c684e752
parent: 6fbee46a8857d89418db3712d8dcd9478d399ed4
author: Paul Brossier <piem@piem.org>
date: Sat Jan 11 22:39:19 EST 2014

python/lib/aubio/slicing.py: also add end if adding start at 0

--- a/python/lib/aubio/slicing.py
+++ b/python/lib/aubio/slicing.py
@@ -13,6 +13,8 @@
 
     if timestamps[0] != 0:
         timestamps = [0] + timestamps
+        if timestamps_end != None:
+            timestamps_end = [timestamps[1] - 1] + timestamps_end
 
     if timestamps_end != None:
         if len(timestamps_end) != len(timestamps):