[p5.js 2.0 Bug Report]: loadSound()
is not defined in p5.js v2.x (TypeError: Cannot read properties of undefined ‘pixels’)
#7879
Labels
Most appropriate sub-area of p5.js?
p5.js version
2.0.3
Web browser and version
Chrome 137.0.7151.57
Operating system
Windows
Steps to reproduce this
Steps:
at setup (/sketch.js:9:3)
Snippet:
sketch.js
// Paste your code here :)
let note1, note2, note3, note4, note5, note6
async function setup() {
createCanvas(600, 400);
rectMode(CENTER)
soundFormats('mp3', 'ogg');
note1 = await loadSound('c.mp3')
note2 = await loadSound('d.mp3')
note3 = await loadSound('e.mp3')
note4 = await loadSound('f.mp3')
note5 = await loadSound('g.mp3')
note6 = await loadSound('a.mp3')
}
The text was updated successfully, but these errors were encountered: