Using p5
By accessing the envelope's current value, we can create responsive visuals that are directly tied to what is heard.
This sketch uses
p5.js
for visual components and the
p5 version of Tone.js
which adds a p5
preload
hook for buffer loading.