# Getting the default value of an AudioParameterFloat

**URL:** <https://forum.juce.com/t/getting-the-default-value-of-an-audioparameterfloat/30453>\
**Category:** Audio Plugins\
**Created:** [November 20, 2018, 12:39pm UTC](https://forum.juce.com/t/getting-the-default-value-of-an-audioparameterfloat/30453 "2018-11-20T12:39:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moditone](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/moditone/32/5214_2.png) [@moditone](https://forum.juce.com/u/moditone)\
**Post date:** [November 20, 2018, 12:39pm UTC](https://forum.juce.com/t/getting-the-default-value-of-an-audioparameterfloat/30453/1 "2018-11-20T12:39:58Z")

</div>

Hi,

I’m trying to get the default value of an AudioParameterFloat. A way to do this is upcasting my parameter, call getDefaultValue() (it’s private otherwise), then scale it back from 0-1 to my actual range.

It would be a nice improvement if we can get the default value of an AudioParameterFloat directly (and perhaps for the other Ranged types too).

Thoughts?

Milan
