diff options
Diffstat (limited to 'simpl/peak_detection.pyx')
-rw-r--r-- | simpl/peak_detection.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpl/peak_detection.pyx b/simpl/peak_detection.pyx index 4db67bf..cd143bf 100644 --- a/simpl/peak_detection.pyx +++ b/simpl/peak_detection.pyx @@ -79,7 +79,7 @@ cdef class PeakDetection: self.frames = [] cdef int pos = 0 - while pos < len(audio): + while pos <= len(audio) - self.hop_size: if not self.static_frame_size: self.frame_size = self.next_frame_size() |