Open woolgathering opened 6 years ago
hi @woolgathering and thank you for the report. This doesn't look related to the file or its headers. The problem is that the onset detection algorithm is not aware of the end-of-file being reached. As it processes the last block of samples (typically 256 samples), an onset is detected and its timestamp is set passed the actual end-of-file.
I'm not sure what is the best way to address this, apart from post-processing the output to ignore onsets detected too late, or clamp them back to the end-of-file timestamp.
Yes, I just did post-processing on the output but I wasn't sure if this was a known issue or not, hence my posting. Thanks for the response!
When running
aubioonset
with the-T samples
flag, a number larger than the size of the file is returned as the final "onset". This number is often 256 samples more than the length of the file but appears to sometimes be less, depending on the file.Here we have the last onset at 98048 and the length of the file at 97792. The difference is 256. I'm thinking that this maybe has something to do with the soxi warning regarding the WAV header?