I would like to create auditory ripples like in the image below (credit due to here )within the browser.
The same website that I sourced the images from tells me how to create these envelopes, and then the ripple effect from them, but I am concerned about the speed of the code - I need to be generating these ripples dynamically with a very low latency. Ideally there would a method in the Tonejs or WebAudio library that I could use that would create these ripples efficiently, but I can't seem to find one.
Do you know if such a method does actually exist? Alternatively, do you know if there is another library that would let me create these envelopes efficiently? Final alternatively, is there a particularly efficient way of constructing these in JavaScript (a language with which I am very unfamiliar!)?