Live input sampling in SC Synth

Hello, I want to be able to record some snippets of live audio input using a rec synth and then play the samples immediately from tidal cycles by adding another synth following the dirt style of synth def. I am quite comfortable in SC coding but I was wondering if there is something like this in the wilderness of internet done already.

check this out: GitHub - thgrund/tidal-looper: Different looper variants for SuperDirt to provide live sampling in TidalCycles.