S&H for creating melody?
I was experimenting with using one looping envelope as the sampling clock for another. Every End-of-Cycle trigger captures the current value of the modulation envelope. Quantizing those sampled values turns a continuous modulation into a melodic sequence.
Small changes to the relationship between the two envelope periods completely change the resulting phrases, even though the patch itself remains very simple.
Then I added another layer by letting the modulation influence the amplitude envelope pattern itself. Since that pattern determines when sampling happens, the melody starts affecting the mechanism that generates it, creating a feedback loop between rhythm and pitch.
I like building systems like this, where musical structure emerges from interactions rather than explicit note programming.