Looking for a gen~ example for Daisy Pod (record on button press, then loop + granular layer)

Hi everyone,
I’m very new to gen~ and Daisy, and I’m trying to build a very basic looper on a Daisy Pod with gen.
I’m looking for a simple gen~ setup / example that records when a button is pressed, stops recording when the button is pressed again, and then plays that recorded buffer in a loop;
with let’s say a maximum loop time of 10 sec
I’m hoping someone might have a gen~ version or a minimal patch I could study.

My next step would be to add a granular layer on top of that loop and control it with a few faders or external controls later on.
If anyone could share a basic patch, example, or even just the core gen~ logic for this, I’d be super happy!
I’m starting on the Pod for now, but I’d like to expand to custom hardware later.

Thanks,
Gertsch