I've added some unit tests for it, and in the process had to make a few tweaks
I've made it so you can set the max-per-page to -1, to keep the old behaviour where you can control the page-boundaries by manually setting the right granule on your audio before you pass it in, handy for eg copying.
Your granule calculation logic applies otherwise
Can you please check I haven't broken anything or missed any of your requirements with these changes?
Thanks for this!
I've added some unit tests for it, and in the process had to make a few tweaks
I've made it so you can set the max-per-page to -1, to keep the old behaviour where you can control the page-boundaries by manually setting the right granule on your audio before you pass it in, handy for eg copying.
Your granule calculation logic applies otherwise
Can you please check I haven't broken anything or missed any of your requirements with these changes?