# setMuteFadeSpeed for FMOD Studio?

**URL:** <https://qa.fmod.com/t/setmutefadespeed-for-fmod-studio/22198>\
**Category:** FMOD Studio\
**Tags:** unity, csharp\
**Created:** [October 19, 2024, 6:21am UTC](https://qa.fmod.com/t/setmutefadespeed-for-fmod-studio/22198 "2024-10-19T06:21:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johanenglund](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Johanenglund](https://qa.fmod.com/u/Johanenglund)\
**Post date:** [October 19, 2024, 6:21am UTC](https://qa.fmod.com/t/setmutefadespeed-for-fmod-studio/22198/1 "2024-10-19T06:21:36Z")

</div>

Is there a way of setting the fade time on getbus.setmute? I’d like to avoid a coroutine if I can, and using an ADSR doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)\
**Post date:** [October 23, 2024, 5:28am UTC](https://qa.fmod.com/t/setmutefadespeed-for-fmod-studio/22198/2 "2024-10-23T05:28:58Z")

</div>

Hi,

To implement a smooth fade without using coroutines or ADSR, you could consider adding automation to the fader of the bus in the mixer with a slow [seek speed](https://fmod.com/docs/2.02/studio/parameters.html) applied to the parameter.

The detailed process would be listed below:

- Go to Windows \> Mixer, In the Mixing Desk, select target bus and right click to add automation to its fader’s volume.
- Create a global parameter(.e.g BusMuteIndex in this case) with initial value set to 1, add the curve to the automation of the fader’s volume and adjust the curve.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe1lNExcidxIDuPjiAtHEYV5lKiO6W-VxGyXGnDeaA1M6XyhprRG7Mv-xO70-0JyhGgyTsjbEX0Yiv7R45HF7I0m0T7v0y_BPrYIkzzW5n4UCod1ktpPpV4j9HgrrNh5Ll0mJPGYUGhjU7-7CKgOeDEiWYE?key=hpufZKREaeEi5R7x6xefAw) ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfksuoppHsWBqUUeeXy_0BhoUFDmPxLgGZIYjb0cFY_tGGB9C9nERhRIQpq8IoU3gRJrOg769pDhWB35e1aCvCoWc1Mc5yZxkmw5m2xB7pXwci4KUO2SqBmMCMBZdgXb3Hpn5LA5s1SdHr8UIHyI3JGH0FZ?key=hpufZKREaeEi5R7x6xefAw)

- Go to Windows\>Preset Browser, select BusMuteIndex and adjust the `Seek Speed`

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXezmK6dhcq8FrIRTI_0KtmmF1ZJ1--Auynr-zocrojPFshi7x8yZyUFOfjY_fF0rniAR_Duy5hEn6W2Z0-nwyixro7sYe4fOL7QD4ZPHOpXYR5seEdvrxCCJlH0JYAdH9SBF_0mpsf5u4KYuH0SjFpBd699?key=hpufZKREaeEi5R7x6xefAw)

- In your C# script, you could then call `RuntimeManager.StudioSystem.setParameterByName("BusMuteIndex", 0);` to smoothly mute the bus and call `RuntimeManager.StudioSystem.setParameterByName("BusMuteIndex", 1);` to smoothly unmute the bus in this case.

Hope this helps, let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![Johanenglund](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Johanenglund](https://qa.fmod.com/u/Johanenglund)\
**Post date:** [November 2, 2024, 11:09am UTC](https://qa.fmod.com/t/setmutefadespeed-for-fmod-studio/22198/3 "2024-11-02T11:09:22Z")

</div>

Thanks @li_fmod this is an elegant solution.
