Here's a patcher for crude "realtime" time expansion. The idea is to expand the time on an incoming signal recorded into a circular buffer with a granular engine (of course, no time compression is not possible in real time). As the buffer is long, the recording head is supposed not to catch up with playback head on its next lap. When expansion factor goes to the no-expansion value (1.0), the playback head to catches up to the recording head. There's some room for improvement of course (intelligent segmentation, playback position randomizing...). However there is an issue: the playback head is often ahead the recording head instead of being behind. There's something with the wrapping I guess but I can't find where. Any idea?