# Deactivate AHDSR on loop

**URL:** <https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489>\
**Category:** FMOD Studio\
**Created:** [May 10, 2016, 8:56pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489 "2016-05-10T20:56:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Llilyh](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Llilyh](https://qa.fmod.com/u/Llilyh)\
**Post date:** [May 10, 2016, 8:56pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/1 "2016-05-10T20:56:00Z")

</div>

Hi,

I’m trying to create a multi-layered music track.  
I have three layers; layer 2 and 3 join in when my player state changes.  
Thing is, I added an AHDSR envelop on these two layers to have a nice fade in / out when the state changes.

Problem is : when the loop starts again, the envelop is taken into account. But I don’t want this. I want the envelop to work only on parameter change. If player\_state remains in state 3, layer 3 should not fade in when looping.

I don’t know if I’m clear here. If I am … do you have any idea on how to solve this ?

Thank you !

---

<div class="post-metadata">

**Author:** ![patrick](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/patrick/32/261_2.png) [@patrick](https://qa.fmod.com/u/patrick)\
**Post date:** [May 11, 2016, 7:03am UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/2 "2016-05-11T07:03:51Z")

</div>

> [@](#):
>
> Hi,
> 
> I’m trying to create a multi-layered music track.  
> I have three layers; layer 2 and 3 join in when my player state changes.  
> Thing is, I added an AHDSR envelop on these two layers to have a nice fade in / out when the state changes.
> 
> Problem is : when the loop starts again, the envelop is taken into account. But I don’t want this. I want the envelop to work only on parameter change. If player\_state remains in state 3, layer 3 should not fade in when looping.
> 
> I don’t know if I’m clear here. If I am … do you have any idea on how to solve this ?
> 
> Thank you !

Hi there. Just to clarify, are you triggering these loops on the timeline or from a game parameter? Also, are the sound modules marked as looping (in the deck area of the sound module)?

If you’re doing looping on the timeline, it may be possible that the loop region is slightly too long and allows the playhead to leave the trigger region of the sound, meaning the AHDSR will reactivate when you come back to the start of the loop.

---

<div class="post-metadata">

**Author:** ![Llilyh](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Llilyh](https://qa.fmod.com/u/Llilyh)\
**Post date:** [May 11, 2016, 7:13am UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/3 "2016-05-11T07:13:02Z")

</div>

Thanks for your reply !

It’s triggered on the timeline.  
I created the loop by clicking “Create new loop” from tracks so there should not be any gap (I checked, there isn’t). The sound modules are not marked as looping because if I do, there are not synchronized anymore (when the state changes, the new layer will start from the beginning while previous layers are already running).

---

<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 12, 2016, 4:32am UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/4 "2016-05-12T04:32:51Z")

</div>

Thanks, you’ve actually discovered a bug in Studio. We’re still working on a solution, but the gist of it is that the AHDSR modulator should not be applying a fade-in to a timelocked sound module when the cursor changes position due to logic markers unless the cursor actually leaves the module’s trigger region.

As a workaround, you might want to try creating two copies of your track 1 content, and using transition timelines to transition from one to the next; With transition timelines, you can click and drag the right edge of the transition timeline to drag in a destination region, allowing the content on the main timeline to play during the transition. A fade-in curve can be applied to this destination region by clicking and dragging its top-left corner. By assigning such regions to your second and third tracks, you’ll be able to fade in those tracks over the course of the transition. You can also perform a very similar procedure to fade out those tracks in a second transition region when you want them to fall silent. Note, however, that using this method means that your event will only be able to fade in and out the second and third tracks at specific points in your loop.

---

<div class="post-metadata">

**Author:** ![milanwijnmaalen](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@milanwijnmaalen](https://qa.fmod.com/u/milanwijnmaalen)\
**Post date:** [November 4, 2016, 2:21pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/5 "2016-11-04T14:21:01Z")

</div>

> [@](#):
>
> Thanks, you’ve actually discovered a bug in Studio. We’re still working on a solution, but the gist of it is that the AHDSR modulator should not be applying a fade-in to a timelocked sound module when the cursor changes position due to logic markers unless the cursor actually leaves the module’s trigger region.
> 
> As a workaround, you might want to try creating two copies of your track 1 content, and using transition timelines to transition from one to the next; With transition timelines, you can click and drag the right edge of the transition timeline to drag in a destination region, allowing the content on the main timeline to play during the transition. A fade-in curve can be applied to this destination region by clicking and dragging its top-left corner. By assigning such regions to your second and third tracks, you’ll be able to fade in those tracks over the course of the transition. You can also perform a very similar procedure to fade out those tracks in a second transition region when you want them to fall silent. Note, however, that using this method means that your event will only be able to fade in and out the second and third tracks at specific points in your loop.

Hi there! I am having the same problem, did you ever manage to fix this bug?

---

<div class="post-metadata">

**Author:** ![elenaasenova](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@elenaasenova](https://qa.fmod.com/u/elenaasenova)\
**Post date:** [July 8, 2019, 1:14pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/6 "2019-07-08T13:14:29Z")

</div>

Hi,

I’m having the same problem as well. Any ideas how to solve this without using the workaround?  
The version of FMOD Studio I am currently using is 2.00.01

Thank you!

---

<div class="post-metadata">

**Author:** ![Llilyh](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Llilyh](https://qa.fmod.com/u/Llilyh)\
**Post date:** [July 8, 2019, 2:17pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/7 "2019-07-08T14:17:16Z")

</div>

Hey,

I don’t know if the issue was fixed but if I remember correctly, I think I just changed the loop.  
Instead of looping from A to C, I would copy “A” again at the end (without the AHDSR) and loop from B to A.

It may be easier to understand with a picture:  
 ![loop%20fmod](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/b5fd8a0b86fa71950fcc364345fc09d3312b3c81.png)

---

<div class="post-metadata">

**Author:** ![verde.lima](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@verde.lima](https://qa.fmod.com/u/verde.lima)\
**Post date:** [August 24, 2025, 6:47pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/8 "2025-08-24T18:47:32Z")

</div>

Hi! Just found a solution that worked for me!

> [@AHDSR probem on volume with Loop region and release](https://qa.fmod.com/t/ahdsr-probem-on-volume-with-loop-region-and-release/13833/4):
>
> Hi there! I have been fighting against this same problem for hours and finally found a solution. In my case I needed the 6 tracks inside the main music event to run in sync and loop, but fade in or out depending on a discrete parameter value. Since AHDSR in clips nor tracks was working the way I needed, I created one send channel in the mixer window for each track (6 in total), assigned those tracks (pre-fader) to the sends (-inf volum in the event page), [1]

> [@AHDSR probem on volume with Loop region and release](https://qa.fmod.com/t/ahdsr-probem-on-volume-with-loop-region-and-release/13833/5):
>
> And created a snapshot for each layer combination I needed. Then added AHDSR mod to the Intensity knob of each snap (this way you can control attack and release time). [2]

---

<div class="post-metadata">

**Author:** ![verde.lima](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@verde.lima](https://qa.fmod.com/u/verde.lima)\
**Post date:** [August 24, 2025, 6:48pm UTC](https://qa.fmod.com/t/deactivate-ahdsr-on-loop/12489/9 "2025-08-24T18:48:06Z")

</div>

(last entry)

> [@AHDSR probem on volume with Loop region and release](https://qa.fmod.com/t/ahdsr-probem-on-volume-with-loop-region-and-release/13833/6):
>
> In a parameter sheet (discrete), made a snapshot instrument for each snapshot and put them in the desired value and… VOILÀ! Working exactly as I needed. [3]
