# Infinitely active loops when using ADSR on parameter sheet

**URL:** <https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663>\
**Category:** FMOD Studio\
**Created:** [May 24, 2024, 2:49pm UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663 "2024-05-24T14:49:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flaschendeckel](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Flaschendeckel](https://qa.fmod.com/u/Flaschendeckel)\
**Post date:** [May 24, 2024, 2:49pm UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663/1 "2024-05-24T14:49:42Z")

</div>

Hello!

I am working in FMOD Studio 2.02.15 on a sound in that is looping and needs to change audio files depending on a few parameters.

I have set this up as a timeline with a loop, but most of the content is triggered from a labeled parameter sheet. The sounds there are set up to cut off when the parameter changes.

To smoothen out the transitions, I would like to add an envelope to the instruments in the parameter sheet. Without the ADSR, the clip will stop playing and become inactive. However, adding the envelope keeps the instances active and piling up, even after my short fadeout is finished. Does someone know if this is intended behaviour or if there are any workarounds?

Thank you!  
Jonathan

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [May 27, 2024, 5:39am UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663/2 "2024-05-27T05:39:50Z")

</div>

To clarify, when you say “adding the envelope keeps the instances active and piling up, even after my short fadeout is finished,” do you mean channels/voices or event instances, and what shows in the profiler?

---

<div class="post-metadata">

**Author:** ![Flaschendeckel](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Flaschendeckel](https://qa.fmod.com/u/Flaschendeckel)\
**Post date:** [May 27, 2024, 8:46am UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663/3 "2024-05-27T08:46:08Z")

</div>

Hey Joseph,

thanks so much for your reply!

I was referring to voices here.Attached is a screenshot of the behaviour in FMOD Studio, after changing the value of the Labeled parameter a few times. The top Instrument has no ADSR on volume, while the lower one has a 1 second fadeout.

![grafik](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/455bf6ca94758024574f43f49cc20b27ec756a2f.png)

Because these loops are staying active, the voice count in the profiler also goes up for as long as the event is active.

Writing this down made me realize I can set a Polyphony limit on the instrument. I’d still be curious what is causing this behaviour and if there is a way around it.

Thank you!  
Jonathan

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [May 28, 2024, 2:51am UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663/4 "2024-05-28T02:51:19Z")

</div>

> [@Flaschendeckel](#):
>
> Because these loops are staying active, the voice count in the profiler also goes up for as long as the event is active.

Thanks for the clarification! The behaviour you’ve discovered is a bug that was introduced in FMOD Studio version 2.02.15 and fixed in FMOD Studio version 2.02.16. Upgrading to any later version (or downgrading to any earlier version) of FMOD Studio should fix the issue, causing a voice to end when the associated AHDSR modulator’s release period finishes.

---

<div class="post-metadata">

**Author:** ![Flaschendeckel](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Flaschendeckel](https://qa.fmod.com/u/Flaschendeckel)\
**Post date:** [June 4, 2024, 9:36am UTC](https://qa.fmod.com/t/infinitely-active-loops-when-using-adsr-on-parameter-sheet/21663/5 "2024-06-04T09:36:01Z")

</div>

Thanks for the clarification, joseph. I’ll see if we can upgrade.

Appreciate the help!
