# HELP: playMode('sustain') is not working

**URL:** <https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565>\
**Category:** Libraries\
**Created:** [May 24, 2019, 7:31pm UTC](https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565 "2019-05-24T19:31:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carpece](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/carpece/32/639_2.png) [@Carpece](https://discourse.processing.org/u/Carpece)\
**Post date:** [May 24, 2019, 7:31pm UTC](https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565/1 "2019-05-24T19:31:32Z")

</div>

Hi to all… here’s my code. I can’t figure out why playMode(‘sustain’) is not working… I’ve point to it inside a conditional and maybe could be the problem but I don’t find the solution.

[https://editor.p5js.org/carpece/sketches/6kZI80Owh](https://editor.p5js.org/carpece/sketches/6kZI80Owh)

Any help?

Thanks!

---

<div class="post-metadata">

**Author:** ![InferNova](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/infernova/32/6009_2.png) [@InferNova](https://discourse.processing.org/u/InferNova)\
**Post date:** [May 26, 2019, 5:20am UTC](https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565/2 "2019-05-26T05:20:12Z")

</div>

Seems like after you load the sound but try to do create audio. I a presume that loadSound and createAudio point to creating different objects.

Hence this line was causing the issue:

```auto
sonido2 = createAudio('audios/Re.mp3');

```

Guess it was making it an ‘audio’ object rather than a ‘sound’.
