I’m new to juce and I’m trying to send sysex messages to my axoloti. I’ve got this part almost ok, but there is something I’d like to be oriented :
I use AudioProcessorValueTreeState as parameters and the Projucer GUI editor, however, each time I add a new subcomponent it inserts it like :
addAndMakeVisible (slider = new Slider ("slider1")); slider->setRange (0, 10, 0); slider->setSliderStyle (Slider::LinearHorizontal); slider->setTextBoxStyle (Slider::TextBoxLeft, false, 80, 20); slider->setColour (Slider::backgroundColourId, Colour (0xff217ba8)); slider->setColour (Slider::trackColourId, Colours::black); slider->addListener (this);
instead of :
addAndMakeVisible (slider); gainAttachment = new SliderAttachment (valueTreeState, "gain", slider);
with gainAttachment in my .h as :
Does anyone know how to make the gui editor compatible with the APVTS and automate this ?