From: Paul Brossier Date: Sun, 12 Jan 2014 07:39:19 +0000 (-0400) Subject: python/lib/aubio/slicing.py: also add end if adding start at 0 X-Git-Tag: 0.4.1~77 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=35a44e99153e68aa5c7ac8eb5d5dc0b2c684e752;p=aubio.git python/lib/aubio/slicing.py: also add end if adding start at 0 --- diff --git a/python/lib/aubio/slicing.py b/python/lib/aubio/slicing.py index 0cf05fba..e96a0d8c 100644 --- a/python/lib/aubio/slicing.py +++ b/python/lib/aubio/slicing.py @@ -13,6 +13,8 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, 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):