It seems that any p5.js code (as above) in combination with loading any p5.sound library results in an error in latest versions of Chrome and Opera when run on a http web server (Apache linux). Running it on a local Apache web server such as mac osx with chrome and Opera is fine. Firefox and Safari don’t seem to have this problem.
Both Chrome and Opera report an error: “cannot read property ‘addModule’ of undefined.” I’m wondering if anyone has seen this and has any advice.
My guess is that it is a security issue with these browsers. Can anyone test on https?