It revolves around the bufferizer object. Mode 1 plays, mode 2 records. With a speed of 0, it will play the first sample. Unfortunately, when recording, it outputs silence, so the greater element is used to fix that. Also, there's a bug in the bufferizer object where it won't playback a one sample recording (due to an off by 1 error), so I used the delay element to turn the ktap single sample 1 output into a two samples output.

This is fairly ugly, but it works...

I don't think you could have made that without consulting the bufferizer source code.

It mostly works, but if you replace the "source" by, say, the linear noise element, you'll notice glitches in the result.

At the end of the day, I'm looking for a random generator that will output a new number when "tapped" rather than at a set frequency: that's why I wanted to connect a sample & hold circuit to one of the random generator (Linear Noise, White Noise, Pink Noise, Random, Random ramp).