# Lerping to a new volume level

**URL:** <https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239>\
**Category:** FMOD Engine\
**Created:** [June 17, 2017, 8:24pm UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239 "2017-06-17T20:24:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Langsuyar](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Langsuyar](https://qa.fmod.com/u/Langsuyar)\
**Post date:** [June 17, 2017, 8:24pm UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239/1 "2017-06-17T20:24:41Z")

</div>

Does the API provide a built-in, fire & forget way to lerp to a new volume level, or should I do this manually in my update function? I see ChannelGroup::setVolume and ChannelGroup::setVolumeRamp, but neither seem applicable.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [June 18, 2017, 1:47am UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239/2 "2017-06-18T01:47:34Z")

</div>

> [@](#):
>
> Does the API provide a built-in, fire & forget way to lerp to a new volume level, or should I do this manually in my update function? I see ChannelGroup::setVolume and ChannelGroup::setVolumeRamp, but neither seem applicable.

Are you looking for a configurable time frame to lerp over? If so your best best would be the addFadePoint API. You’ll have to write a bit of wrapper code , mainly to get the clock value and set your new point into the future (so add the ramp time to the current clock value).

---

<div class="post-metadata">

**Author:** ![Langsuyar](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Langsuyar](https://qa.fmod.com/u/Langsuyar)\
**Post date:** [June 20, 2017, 4:12pm UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239/3 "2017-06-20T16:12:11Z")

</div>

Yes, I think that’s exactly what I want to do. Thanks! If you elevate it to an answer we can close it out. (But this isn’t StackOverflow and no reputation seems on the line, so I just did that.)

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [June 21, 2017, 12:16am UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239/4 "2017-06-21T00:16:03Z")

</div>

I gave you an upvote!

---

<div class="post-metadata">

**Author:** ![Langsuyar](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Langsuyar](https://qa.fmod.com/u/Langsuyar)\
**Post date:** [June 20, 2017, 4:12pm UTC](https://qa.fmod.com/t/lerping-to-a-new-volume-level/13239/5 "2017-06-20T16:12:33Z")

</div>

Per Brett:

> Are you looking for a configurable time frame to lerp over? If so your  
> best best would be the addFadePoint API. You’ll have to write a bit of  
> wrapper code , mainly to get the clock value and set your new point  
> into the future (so add the ramp time to the current clock value).
