You might have better luck in p5.js web editor (Chrome browser). The following changes to your code worked on my system:
function preload() {
soundFormats('mp3', 'ogg');
//theSound = loadSound('breaths.mp3');
theSound = loadSound('assets/Damscray_DancingTiger.mp3');
}
function setup() {
let cnv = createCanvas(displayWidth, displayHeight);
cnv.mouseClicked(togglePlay);
fft = new p5.FFT(0.8, 2048);
theSound.amp(0.2);
}
Set up a folder called ‘assets’ then drag’ndrop your mp3 file to upload it to the folder. Add the sound script to index.html as the reference states. I dropped ‘SVG’ because I didn’t know what it was.
Click the down arrow beside ‘Sketch Files’ and select ‘Upload file’ from the drop down menu. That will display a dragNdrop window for you to upload your file.
Thanks! I appreciate your taking the time to help.
The error, alas, did not go away after reorganizing the sketch directory (and clearing out cruft) but I was able to work around it by switching to Ogg Vorbis.
What’s intriguing is that I swear the same code did work on two occasions with the MP3 file before the error message started appearing instead…
Again, thanks for your efforts, they helped me resolve my situation.