# Feature Request: Logarithmic parameter types for Gain and Freq control (or linear controls!)

**URL:** <https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947>\
**Category:** FMOD Studio\
**Created:** [August 15, 2019, 3:47pm UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947 "2019-08-15T15:47:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddhelsley](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/toddhelsley/32/2550_2.png) [@toddhelsley](https://qa.fmod.com/u/toddhelsley)\
**Post date:** [August 15, 2019, 3:47pm UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/1 "2019-08-15T15:47:22Z")

</div>

Hello,

We often use parameters to tune instrument/effect gain and/or EQ frequency via the parent event (or an external editor that drives the parameter values). However, due to parameters being linear in nature, there isn’t an easy way to 1:1 map the logarithmic gain or frequency controls to the corresponding linear parameter values, outside of creating a lot of automation points or getting it “close enough” by shaping the curve a bit.

**Example** : Volume and “Gain” parameter both scale from -80 to +10, but due to one being linear and one being logarithmic, they don’t align (-40 = -18.9):  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/f991a666264cc943edc968c039cc3ad840c6da9f.png)

Internally we’ve built a linear gain plug-in to get around this, but having to instantiate extra DSP purely to map values isn’t ideal.

What I would love to see as new parameter types are “Logarithmic Gain” and “Logarithmic Frequency.” By choosing “Logarithmic Gain” the parameter would scale from -80 to +10 logarithmically which would match 1:1 with instrument and effect gain. Same for frequency, the parameter would scale from 20Hz-22kHz and scale logarithmically like the EQ effects do.

Conversely, (and now that I’m typing this, maybe it’s the more logical approach) it might be easier to be able to right click a gain or frequency control and select whether it functions linearly or logarithmically, negating the need for logarithmic parameter types.

Either way it would be an amazing addition to the FMOD toolset!

Thanks for your time,  
Todd

---

<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:** [August 16, 2019, 1:03am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/2 "2019-08-16T01:03:42Z")

</div>

Thanks for the suggestions! I’ve added them to our feature/improvement tracker.

---

<div class="post-metadata">

**Author:** ![AxiomVerge](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@AxiomVerge](https://qa.fmod.com/u/AxiomVerge)\
**Post date:** [June 24, 2021, 9:09pm UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/3 "2021-06-24T21:09:40Z")

</div>

I just wanted to say I ran into the same issue, where I’m using a parameter to control volume and fade between two versions of a song over time. If I just make a linear curve from 0 to negative infinity or vice versa, when my “Mix” parameter is at 0.5, the volume will be -21.4 db, when really you want it to be -3 db or so. So even if I blend the same sound onto itself, if their is a huge dip in volume midway through the blend. I’m trying to adjust the curve so that it looks exponential but it’s not really precise enough and you hear volume fluctuations as the two sounds blend.

I used the online calculator to try and draw the curve myself, but it sucks to do this:

[http://www.sengpielaudio.com/calculator-levelchange.htm](http://www.sengpielaudio.com/calculator-levelchange.htm)

---

<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:** [June 25, 2021, 12:40am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/4 "2021-06-25T00:40:55Z")

</div>

> [@AxiomVerge](#):
>
> I just wanted to say I ran into the same issue

Thank for the feedback. I’ll add you to the list of parties interested in this feature.

---

<div class="post-metadata">

**Author:** ![ReaktorDave](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@ReaktorDave](https://qa.fmod.com/u/ReaktorDave)\
**Post date:** [February 25, 2024, 9:03pm UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/5 "2024-02-25T21:03:50Z")

</div>

There’s a similar situation with the `Reverb Time` parameter from the reverb plugin.

I’d recommend automation parameter curves to have an option to access a non-linear parameter (often logarithmic dB/Hz, but also just multi-stage-linear like the ReverbTime parameter) as linear so that an automation range matching the parameter’s min and max values maps one to one to the parameter values.

---

<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 26, 2024, 8:39am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/6 "2024-02-26T08:39:14Z")

</div>

I’ve had issues with this several times - would definitely be a great addition!

---

<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:** [February 27, 2024, 3:17am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/7 "2024-02-27T03:17:09Z")

</div>

> [@ReaktorDave](#):
>
> There’s a similar situation with the `Reverb Time` parameter from the reverb plugin.

Don’t worry, the task in our feature/improvement tracker covers all properties that use a non-linear scale.

> [@deHaan](#):
>
> would definitely be a great addition!

I’ve added you to the list of people interested in this improvement.

---

<div class="post-metadata">

**Author:** ![Knight-Owl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/knight-owl/32/6753_2.png) [@Knight-Owl](https://qa.fmod.com/u/Knight-Owl)\
**Post date:** [May 28, 2024, 2:35pm UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/8 "2024-05-28T14:35:36Z")

</div>

I’m also interested in this feature. For me it’s for setting the milliseconds of the delay effect, since I want to be able to let people delay the audio in a rhythm game if their monitor is delayed, etc.

---

<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 29, 2024, 7:08am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/9 "2024-05-29T07:08:59Z")

</div>

I’ll add you to the list of people who’re interested.

---

<div class="post-metadata">

**Author:** ![mkoepke](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mkoepke](https://qa.fmod.com/u/mkoepke)\
**Post date:** [December 3, 2024, 11:25am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/10 "2024-12-03T11:25:16Z")

</div>

Is there an update on this feature request? I’m running into this issue when trying to set the min and max attenuation distance using parameters from Unity (with Atmoky TrueSpatial which uses the standard FMOD Attenuation widget).

---

<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:** [December 5, 2024, 2:34am UTC](https://qa.fmod.com/t/feature-request-logarithmic-parameter-types-for-gain-and-freq-control-or-linear-controls/14947/11 "2024-12-05T02:34:47Z")

</div>

> [@mkoepke](#):
>
> Is there an update on this feature request?

According to our records, the feature has been scheduled for development, but work on it has not yet begun.

I’ll add you to the list of people interested in it.
