# AHDSR attack and release bug?

**URL:** https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981
**Category:** FMOD Studio
**Created:** [July 17, 2020, 11:37am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981 "2020-07-17T11:37:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cwdain](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cwdain](https://qa.fmod.com/u/cwdain)
#### Post date: [July 17, 2020, 11:37am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/1 "2020-07-17T11:37:51Z")

</div>

Hi all!

Been having some issues with short attack and release times using AHDSR modulation. This is my setup:

 ![ahdsrbass](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/a2fa7e88100d895b6d96f758da10e6d3febf21e0.png)

Multi-instruments played within a labelled parameter in FMOD 2.00.05. Each MI has AHDSR modulation on its volume to smooth out transitions between other MIs.

The problem/bug is that having very short attack and release times is introducing random clicks. The attack doesn’t seem to be smooth when looking at the a capture of me playing with this in editor:

 ![attackbass](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2bf597c2ea51b114e076ef1288d337a83d015b9d.png)

Its also pretty inconsistent. The first 2 waveforms here have a blocky attack, as if the attack curve is going: 0%-50%-100%. The final one there I can’t really explain, looks like its almost ignoring the AHDSR.

Just tested this some more and the same happens with short release times. Even around 300ms the release seems blocky going downwards. Tried this in 2.01.00 with the same results.

Any ideas?

Thanks

---

<div class="post-metadata">

### Author: ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)
#### Post date: [July 21, 2020, 6:35am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/2 "2020-07-21T06:35:24Z")

</div>

Hi cwdain,

We’ve identified the issue and have scheduled to address this in a future version. Thanks for the information.

---

<div class="post-metadata">

### Author: ![Skaven252](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaven252/32/63_2.png) [@Skaven252](https://qa.fmod.com/u/Skaven252)
#### Post date: [July 23, 2020, 9:15am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/3 "2020-07-23T09:15:07Z")

</div>

FMOD AHDSR and automation envelopes are quantized to frames (the internal frame rate of FMOD), so you hear clicking with short fades, especially audible with something like a sine wave. The only way to get smooth gain modulation is with the Tremolo DSP, which does its modulation trickery internally, independently of the frames.

Yes indeed, sample accurate ramping for both AHDSR and automation would be a nice future feature. I reckon it will increase the CPU cost though?

---

<div class="post-metadata">

### Author: ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)
#### Post date: [July 28, 2020, 5:51am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/4 "2020-07-28T05:51:56Z")

</div>

Ah yes, Skaven252 is correct. There are update length steps to when the ahdsr is applied, and they may not align nicely with the instrument start/end. Also that a sample accurate ahdsr would be more cpu intensive.

We’ve added a task to our backlog to look at adding a sample accurate option to better cover this case.

---

<div class="post-metadata">

### Author: ![sandeben](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@sandeben](https://qa.fmod.com/u/sandeben)
#### Post date: [June 22, 2021, 1:06pm UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/5 "2021-06-22T13:06:39Z")

</div>

Is there any word on this? It would be fantastic to have sample accurate envelope action, or maybe even to specify a rate which is somewhere in between. Perhaps having frame quantised movement by default, with the option to make some of them more accurate would be good.

I think this would be really handy for taking a loop and giving it a small fade in and out so there isn’t a horrible click when you trigger the loop’s start or stop.

Thanks!

---

<div class="post-metadata">

### Author: ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)
#### Post date: [June 23, 2021, 2:15am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/6 "2021-06-23T02:15:06Z")

</div>

There currently aren’t any updates on this - the task is still in our backlog.

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 20, 2024, 2:46pm UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/7 "2024-02-20T14:46:33Z")

</div>

Any progress on this issue? Spent way too long trying to figure out why my instrument with a fast attack time was clicky before I found this post

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [February 26, 2024, 6:36am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/8 "2024-02-26T06:36:26Z")

</div>

No progress yet unfortunately. I have bumped the task.

---

<div class="post-metadata">

### Author: ![Marbel](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Marbel](https://qa.fmod.com/u/Marbel)
#### Post date: [March 23, 2025, 1:31am UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/9 "2025-03-23T01:31:52Z")

</div>

I don’t suppose this getting looked into yet? thanks

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [March 23, 2025, 10:07pm UTC](https://qa.fmod.com/t/ahdsr-attack-and-release-bug/15981/10 "2025-03-23T22:07:07Z")

</div>

Not yet. I have registered your interest in the task.
