Groove~ sync output stops working over night

johnsabom's icon

I have two buffers, and one is used to read data with Peek in sync with the Groove~ object running the other buffer.

So I use sync output to snapshot where I am and read Peeks.

When I leave the RPi over night, NOT running the song, it stops working.

I can still play the Groove~ and hear the music. But the functions, like Peek, doesn't work. This is the case even though I stop the Groove, load another file into the Buffer or move the play position.

Seems to be a bug in Groove~ sync output? Restarting JACK makes it work again. Can I trigger a reset of the Groove object in some way instead and handle it "within-patch"?

Source Audio's icon

I would rather guess it is snapshot~ which fails.

that bug has been present since very long time.

why do you need snapshot at all ?

wave~ can be used to read 2nd buffer instead

johnsabom's icon

Snapshot is the problem? I use Peek because I read out synced datacues, not audio. Can I get snapshot reseted by changing read interval to 0 and back again?

Source Audio's icon

fix was to use metro to bang snapshot.

johnsabom's icon

Thank you! 🙏 will definitely try, you’re amazing!

johnsabom's icon

Just an update if someone happens to fall into this:

I had to use snapshot~ with "internal" polling rather than metro, which wasn't precise enough. The solution was to turn snapshot~ polling of with interval set to 0 (zero) in between the songs, and then interval 5 again when snapshot was needed. This got it stable enough to run three days at least :)

Alex Norman's icon

Hey johnsabom, can you share a patcher that shows your issue?? We'd love to put a bug ticket together and fix it.