i have programmed a looper (100% code box code) in gen where I use a master counter to read through the buffer recordings using peek. I currently slow down and speed up the loopers by increasing or decreasing (>1 or <1) the counter steps. I want now to incorporate time stretch and found the grain stretch object which sounds great but has unfortunately 2 limitations:
1. It is not written in gen - as I have a sample accurate implementation it will not work for me
2. What I understood from grainstretch implementation is that the loop length is equal to the buffer size. In my implementation the loop length is always different to the buffer size as I dynamically calculate loop length on the fly.
So here are my questions:
Is there any gen grain stretch implementation (or similar) which I could utilize?
It would be great to have an implementation that utilizes code box code which would make it possible to integrate it in my looper implementation.
Any hints, links or thoughts are welcome.