Using AudioWorklets to generate audio

My first "ambitious" Web Audio project was porting my VST instrument Sorollet (which was written in C++) to JavaScript, as sorollet.js . At a very simplified level, software using a VST instrument requests periodically a "slice" of audio data 1 from the instrument, and the instrument returns such a thing by writing the results of its computations into a buffer. Thus when I wrote sorollet.js , I…