# Assertion failure in AU\_Wrapper

**URL:** <https://forum.juce.com/t/assertion-failure-in-au-wrapper/15327>\
**Category:** Audio Plugins\
**Created:** [August 14, 2015, 4:46pm UTC](https://forum.juce.com/t/assertion-failure-in-au-wrapper/15327 "2015-08-14T16:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcapozzi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lcapozzi/32/10960_2.png) [@lcapozzi](https://forum.juce.com/u/lcapozzi)\
**Post date:** [August 14, 2015, 4:46pm UTC](https://forum.juce.com/t/assertion-failure-in-au-wrapper/15327/1 "2015-08-14T16:46:54Z")

</div>

Hi guys,

I have some sliders set to different ranges (i.e: 20..20000), but when I add the parameter to the PluginProcessor and I set a default value greater than 1.0f the plugin crashes with an assertion failure on juce\_AU\_Wrapper, on outParameterInfo.

Nothing trivial on the parameter declaration.. the usual addParameter args. Example:

```
addParameter (cutoff = new FloatParameter (1000.0f, "Cutoff"));
```

Anybody experiencing the same issue?

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [August 18, 2015, 11:07am UTC](https://forum.juce.com/t/assertion-failure-in-au-wrapper/15327/2 "2015-08-18T11:07:10Z")

</div>

Well, yes, the valid range of an AudioProcessorParameter's value is between 0.0f and 1.0f. Your getValue() and getDefaultValue() methods must always return numbers within that range.

---

<div class="post-metadata">

**Author:** ![lcapozzi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lcapozzi/32/10960_2.png) [@lcapozzi](https://forum.juce.com/u/lcapozzi)\
**Post date:** [August 18, 2015, 10:24pm UTC](https://forum.juce.com/t/assertion-failure-in-au-wrapper/15327/3 "2015-08-18T22:24:54Z")

</div>

Thank you, Timur. I see that the parameter given by a Slider, for example, with a range defined by setRange is automatically converted to 0-1 while passing it to the AudioProcessorParameter. I was expecting it to work both ways. In this case, which is the best way to send a value back to the Slider?

&nbsp;

Thanks
