In the context of my thesis I needed to create an audio experiment to be realized by participants in my lab. But with the corona I need to adapt it to an online experiment. I chose to use a site named pavlovia which allow me to make an html/javascript
experiment, the site act as a host and collect the data for me.
In matlab I was selecting randomly 3 sounds in a directory to load them in vectors, sum them and play the result with audioplayer
function. My problem is that I don't know how to do that in javascript. I only found information on how to play a registered sound, not how to play a sound which is in fact stored in a variable in memory.