How to load sound in a web editor sketch?

https://editor.p5js.org/tv42/sketches/ejesQqE1v

This sketch gives me a 404 error, even though the sound file appears in the project folder. Is something missing? Am I improperly using something from here?(https://p5js.org/reference/#/p5.SoundFile)
Working on the web editor in Firefox.

you have an extra space in the name of the file

change this

mySound = loadSound("401252__rxrxhx__nikon-d600-shutter.wav ");

to this

mySound = loadSound("401252__rxrxhx__nikon-d600-shutter.wav");

:stuck_out_tongue:

3 Likes