# P5 Envelope Sound Clipping/Crackle

**URL:** https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310
**Category:** Libraries
**Created:** [March 2, 2020, 1:17pm UTC](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310 "2020-03-02T13:17:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![godmach1ne](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@godmach1ne](https://discourse.processing.org/u/godmach1ne)
#### Post date: [March 2, 2020, 1:17pm UTC](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310/1 "2020-03-02T13:17:07Z")

</div>

Hi all,

Have been trying to create a sequencer using the p5.sound library with the use of Parts. It works smoothly with sample files, however I would like to add more parameters (ADSR) to the sound to play with by using envelopes. I created 5 envelopes for each individual soundfile, and it seems like when i run all of them together the audio clips and crackles after a short period of time. Can’t seem to wrap my head around this issue and have been trying to fix it for days. Any help would be appreciated, thank you 🙂

---

<div class="post-metadata">

### Author: ![unofficial](https://avatars.discourse-cdn.com/v4/letter/u/8491ac/32.png) [@unofficial](https://discourse.processing.org/u/unofficial)
#### Post date: [April 29, 2020, 8:04pm UTC](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310/2 "2020-04-29T20:04:01Z")

</div>

Do you have any code to show what you are doing? If you are trying to modulate things too quickly it can cause the waveforms to get cutoff on non-zero points leading to pops.
