# How to load sound in a web editor sketch?

**URL:** <https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640>\
**Category:** Libraries\
**Created:** [February 22, 2019, 6:14pm UTC](https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640 "2019-02-22T18:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tv42](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@tv42](https://discourse.processing.org/u/tv42)\
**Post date:** [February 22, 2019, 6:14pm UTC](https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640/1 "2019-02-22T18:14:50Z")

</div>

**[https://editor.p5js.org/tv42/sketches/ejesQqE1v](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](https://p5js.org/reference/#/p5.SoundFile))  
Working on the web editor in Firefox.

 ![Screenshot%20(30)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4084189fe7963fce791c16079fbc13b78ef53078.png)

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [February 22, 2019, 10:47pm UTC](https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640/2 "2019-02-22T22:47:44Z")

</div>

you have an extra space in the name of the file

change this

```auto
mySound = loadSound("401252 __rxrxhx__ nikon-d600-shutter.wav ");

```

to this

```auto
mySound = loadSound("401252 __rxrxhx__ nikon-d600-shutter.wav");

```

😛
