How to loop sound generated within a p5 envelope

here: win 10 // firefox browser //
in online editor
the example is working ( on mouse click hear a sound )

regarding you code, repair:

line 1 "et" > "let"
line 8 "t=0; > "let t = 0;"

and it works also.

1 Like