AudioPluginHost doesn't show parameter GUI

#1

Hello,
I recently updated juce to 5.4 version and modified my createAndAddParameters("paramID", ...); calls with createAndAddParameters(std::make_unique<Parameter>("paramID", ...)); but AudioPluginHost won’t show parameters in the GenericEditor as before.
I don’t want to create all sliders and buttons in my GUI in order to test parameters, and that was an excellent solution!
What happened? Am I missing something?
Thanks

0 Likes

#2

You’re going to have to provide a bit more detail than that before anyone will be able to help you. What exactly is your createAndAddParameters function doing?

0 Likes

#3

In my processor’s constructor:

	for (auto channel = 0; channel < maxMidiChannel; channel++)
        {
	   synth.add(new MySynth(outputs[channel]));
	   createParameters(parameters, channel);
	   attachParameters(channel);
        }

Then inside createParameters():

if(!isMasterSet){

   // level
   parameters.createAndAddParameter(std::make_unique<AudioParameterFloat>
	                            ("pMasterLevel",
				     "Master Level",
              			     0.0f, 1.0f, 1.0f));

   // pan
   parameters.createAndAddParameter(std::make_unique<AudioParameterFloat>
				("pMasterPan",
				"Master Pan",
				NormalisableRange<float>(-1.0f, 1.0f),
				0.0f,	
			        "",
				AudioProcessorParameter::genericParameter,
				nullptr, nullptr));
   // mute
   parameters.createAndAddParameter(std::make_unique<AudioParameterBool>
				("pMasterMute",
				"Master Mute",
				false,
			        "",
				nullptr, nullptr));
isMasterSet = true;
}
// create channels in the same way

I tried with both the new and the old constructor. Parameters are successfully created since I’m able to use them in my GUI and they produce the expected results in audio rendering. Now I’d like to test some new functionalities like an envelope, but AudioPluginHost shows plugin GUI only, and not the parameter preview.

0 Likes