# Stop audio from MIDI input detection

**URL:** <https://discourse.processing.org/t/stop-audio-from-midi-input-detection/17665>\
**Category:** Libraries\
**Created:** [February 9, 2020, 3:38pm UTC](https://discourse.processing.org/t/stop-audio-from-midi-input-detection/17665 "2020-02-09T15:38:50Z")\
**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:** [February 9, 2020, 3:38pm UTC](https://discourse.processing.org/t/stop-audio-from-midi-input-detection/17665/1 "2020-02-09T15:38:50Z")

</div>

Hi, I’m trying to stop my audios when I click on reset button. I guess I have to point to “audio” in abstract, because I preloaded an array of audios…

[https://editor.p5js.org/carpece/sketches/5NWyhBHT](https://editor.p5js.org/carpece/sketches/5NWyhBHT)

Any idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 13, 2020, 10:15pm UTC](https://discourse.processing.org/t/stop-audio-from-midi-input-detection/17665/2 "2020-02-13T22:15:46Z")

</div>

Hi @Carpece –

Are you trying to stock many different audio clips, or just whichever one is playing? When you click, try looping over your array and calling stop on each one.
