So for this weekend’s Global Game Jam, I was thinking of using Observable together with p5.js for an easy developer environment. With a little help from Mike Bostock I now have a neat little notebook template for a basic full-screen p5 sketch.
The only thing is that I can’t seem to figure out how to load the other p5.js libraries. I’ve looked at the issues in the github repo regarding loading the lib with instance mode. Those all suggest import 'p5/lib/addons/p5.sound'
, but that doesn’t work in Observable.
Anyone have any ideas?
EDIT: For now I resorted to using Howler.js instead. It works for my use-case, which is just playing back samples.