Importing the p5js sound library

oh no worries! :slight_smile:

so you do indeed have two p5s defined in the notebook, in addition to the require i see:

import { p5 } from "@tmcw/p5"

you would need to rename one of them, for example:

import { p5 as p5Setch } from "@tmcw/p5"

and change up the references. or:

p5WithSound = require("p5").then(async (p5) => {
  // newer versions of p5 sound don't work with es6 modules
  await require("p5@0.9.0/lib/addons/p5.sound.min.js");
  return p5;
})

also, it may make sense to figure out if you need both of these, but let’s see if we can get em loaded for starters. :slight_smile:

1 Like