# AudioProcessorParameter not showing in host automation

**URL:** <https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000>\
**Category:** Audio Plugins\
**Created:** [March 24, 2016, 10:53am UTC](https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000 "2016-03-24T10:53:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimmyFF](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JimmyFF](https://forum.juce.com/u/JimmyFF)\
**Post date:** [March 24, 2016, 10:53am UTC](https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000/1 "2016-03-24T10:53:45Z")

</div>

Hi - I need help automating parameters in my plugins, as far as I can see I have all the required bits of code but they dont show up in automation in&nbsp;any DAW. Following the juce demo plugin I have extended AudioProcessorParameter to make my FloatParameter class:

```
class FloatParameter : public AudioProcessorParameter
{
public:
    FloatParameter (float defaultParameterValue, const String& paramName): defaultValue (defaultParameterValue),
    value (defaultParameterValue),
    name (paramName)
    {
    }

    float getValue() const override
    {
        return value;
    }
    
    void setValue (float newValue) override
    {
        value = newValue;
    }

    float getDefaultValue() const override
    {
        return defaultValue;
    }

    String getName (int maximumStringLength) const override
    {
        return name;
    }

    String getLabel() const override
    {
        return String();
    }
 
    float getValueForText (const String& text) const override
    {
        return text.getFloatValue();
    }

private:
    float defaultValue, value;
    String name;
};
```

&nbsp;

In my processor.h i declare a new parameter:

```
AudioProcessorParameter* gain;
```

&nbsp;

and instantiate it in the processor constructor:

```
addParameter(gain = new FloatParameter(1.0f, "Gain"));
```

&nbsp;

Is there something I have not got here that means my parameter is not appearing in the DAW host automation?

---

<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:** [March 29, 2016, 10:28am UTC](https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000/2 "2016-03-29T10:28:35Z")

</div>

Make sure that you don't by mistake override the old&nbsp;getNumParameters,&nbsp;getParameter, setParameter, ... methods. When using the new AudioProcessorParameter classes you must allow the base class to handle those calls.

---

<div class="post-metadata">

**Author:** ![JimmyFF](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JimmyFF](https://forum.juce.com/u/JimmyFF)\
**Post date:** [April 1, 2016, 8:39am UTC](https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000/3 "2016-04-01T08:39:37Z")

</div>

Ah that fixed it thanks&nbsp;- Is this documented anywhere? Because I'm working from a plugin created by the introjuicer, and&nbsp;AudioProcessor::getNumParameters / getParameter / setParameter / getParameterName / getParameterNameText were all overrided in the processor by default, as setup by introjuicer and thus causing this problem.

---

<div class="post-metadata">

**Author:** ![euggie2000kg](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@euggie2000kg](https://forum.juce.com/u/euggie2000kg)\
**Post date:** [March 9, 2023, 9:09am UTC](https://forum.juce.com/t/audioprocessorparameter-not-showing-in-host-automation/17000/4 "2023-03-09T09:09:56Z")

</div>

Same problem. Moreover, in an example ArpegiatorTutorial which consists of these files:

```auto
Main.cpp
ArpeggiatorTutorial.h

```

addParameter is working fine

But in my test project which was generated with Projucer there are 4 files:

```auto
PluginProcessor.cpp
PluginProcessor.h
PluginEditor.cpp
PluginEditor.h

```

I’ve copied the same addParameter call inside the constructor of PluginProcessor.cpp class, and the necessary variable in the private part of PluginProcessor.h, updated methods getStateInformation and setStateInformation accordingly but slider does not show up!  
Methods getNumParameters, getParameter, setParameter are not overridden. What could be the cause of this ? The JUCE version is 7.0.3
