How to loop sound generated within a p5 envelope

i try your above code:
i can click 3 times with mouse and get sound

sorry, not understand

if you need something like to repeatedly play that envelope
( but not via sound tools )
just by draw / loop need some timer code?

1 Like