# \[SOLVED\] RTAS GetDefaultValue

**URL:** <https://forum.juce.com/t/solved-rtas-getdefaultvalue/14819>\
**Category:** Audio Plugins\
**Created:** [May 19, 2015, 10:12am UTC](https://forum.juce.com/t/solved-rtas-getdefaultvalue/14819 "2015-05-19T10:12:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanj-ssl](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alanj-ssl/32/556_2.png) [@alanj-ssl](https://forum.juce.com/u/alanj-ssl)\
**Post date:** [May 19, 2015, 10:12am UTC](https://forum.juce.com/t/solved-rtas-getdefaultvalue/14819/1 "2015-05-19T10:12:31Z")

</div>

Is it possible to set a parameter to a default value other than 0? I've tried this in PT10 (OS X) and&nbsp;it appears to be ignored, the parameter always defaults to 0 on instantiation.

&nbsp;

Thanks,

Alan

---

<div class="post-metadata">

**Author:** ![alanj-ssl](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alanj-ssl/32/556_2.png) [@alanj-ssl](https://forum.juce.com/u/alanj-ssl)\
**Post date:** [May 19, 2015, 2:57pm UTC](https://forum.juce.com/t/solved-rtas-getdefaultvalue/14819/2 "2015-05-19T14:57:01Z")

</div>

I've resolved this with an addition to the RTAS wrapper...

&nbsp;

```
JucePluginControl (AudioProcessor* const juceFilter_, const int index_)
            : juceFilter (juceFilter_),
              index (index_)
        {
            // Set the default value
            CPluginControl::SetValue ( GetDefaultValue () );
        }
```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 20, 2015, 3:22pm UTC](https://forum.juce.com/t/solved-rtas-getdefaultvalue/14819/3 "2015-05-20T15:22:24Z")

</div>

Thanks Alan, this seems like a good idea, we'll get it sorted out right away!
