Find the last onset within a sample

couple of functions I defined in this post should help
IistOnsets and numOnsets

2 Likes