# kAudioUnitProperty ParameterStringFromValue support

**URL:** <https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190>\
**Category:** Audio Plugins\
**Created:** [June 22, 2016, 11:17am UTC](https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190 "2016-06-22T11:17:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [June 22, 2016, 11:17am UTC](https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190/1 "2016-06-22T11:17:29Z")

</div>

if a plugin does not use the AudioProcessorParameter system, then AudioProcessor::getParameterText() should be called instead of String (value).

It’s l.488 of juce\_AU\_Wrapper.mm :

`text = String (value);`

should be replaced by something like :

`text = juceFilter->getParameterText ((int) pv->inParamID, 1024);`

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [June 23, 2016, 10:07am UTC](https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190/2 "2016-06-23T10:07:26Z")

</div>

Thanks for spotting this. I’ve fixed this on the develop branch however, the fix is not as straightforward as you might expect. AU’s kAudioUnitProperty\_ParameterStringFromValue call will include the parameter value which needs to be converted and this may not be equal to the current value of the parameter. Therefore, I will fallback to String (value) if the current value of the parameter does not match the requested value - not sure if this is the right thing to do. Please let me know if I should revert this change.

---

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [June 23, 2016, 4:49pm UTC](https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190/3 "2016-06-23T16:49:31Z")

</div>

arf. yes, that makes sense, but that won’t work unfortunately, because the values of the int/bool parameters are ‘rounded’ while the given one is not.  
As a result, the strings shown in the automations in logic would sometimes be ok, sometimes not, so I think it’s best to revert yes.

I’m wondering if there would be any cases where always returning the param value would be a problem actually. do you know?

also note that it’s done this way in the aax wrapper (in GetParameterStringFromValue)

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [June 27, 2016, 3:04pm UTC](https://forum.juce.com/t/kaudiounitproperty-parameterstringfromvalue-support/18190/4 "2016-06-27T15:04:36Z")

</div>

OK I’ll revert the commit.
