# Record audio from sketch P5

**URL:** <https://discourse.processing.org/t/record-audio-from-sketch-p5/5382>\
**Category:** Libraries\
**Created:** [November 9, 2018, 3:26pm UTC](https://discourse.processing.org/t/record-audio-from-sketch-p5/5382 "2018-11-09T15:26:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magapascansky](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@magapascansky](https://discourse.processing.org/u/magapascansky)\
**Post date:** [November 9, 2018, 3:26pm UTC](https://discourse.processing.org/t/record-audio-from-sketch-p5/5382/1 "2018-11-09T15:26:32Z")

</div>

Hello!

I am developing a sketch with p5.js that simulates playing drums and my idea is to play drum sounds when you press keys (already done) and to be able to record it.  
The only recording examples/tutoriales that I’ve found are recording from mic but I want to record the sounds that come from my sketch. Is that possible?

Thank you!

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [November 9, 2018, 3:59pm UTC](https://discourse.processing.org/t/record-audio-from-sketch-p5/5382/2 "2018-11-09T15:59:55Z")

</div>

If you already output Sounds, you could just use the variable for your output.
