timsainb / vocalization-segmentation

Simple python algorithms for segmenting animal (songbird, mice) vocalizations into notes and syllables using Dynamic Thresholding and Continuity Filtering.
MIT License
26 stars 10 forks source link

Onset value exceeds maximum file duration #1

Open AvisP opened 4 years ago

AvisP commented 4 years ago

When I am using your code for dynamic threshold segmentation on a particular file of 31.6384 s duration, the variable results returned from the code contains an onset at 31.645 s and an offset at 31.71 s. Here is a link demonstrating the issue. The data file is available here

robinmeier commented 3 years ago

pretty sure this is related to my issue https://github.com/timsainb/vocalization-segmentation/issues/3

timsainb commented 3 years ago

This should be fixed