I am creating a small sequencer like this one , but I want to use only HTML / JavaScript (i.e. no Flash).
When you play with the applet in the link above, you will notice that several sounds can play simultaneously and / or quickly. I use an array of audio objects that mimic different βslotsβ or channels to achieve the desired polyphony, and as a concept, this works. I do not experience any trim or cut in my audio.
However, this process becomes excessively resource intensive very quickly, regardless of the original file / compression type. It is not uncommon for the web browser itself to crash as the number of sounds increases.
So, I wonder: What, if any, is the best way to facilitate a rather heavy download of audio without strangling the browser? Or, trying to get HTML / JS to work for this purpose - a crazy errand?
Any insight would be greatly appreciated. Here is the silent version.
source share