Sustain Pedal for guitar / anything else

I guess FFT is the “best” way to achieve a sustain effect. But it’s possible to get a reasonable sustain/freeze sound with granular synthesis - Eli’s tutorial shows this here: