I am trying to get a two value slider hooked up with a processor tree but i keep getting an error as the sliderValueChanged method keeps calling getValue()
I’m a bit of a noob so apologies if this is obvious:
i have this:
ScopedPointer AudioProcessorValueTreeState::SliderAttachment filterLFOTree;
filterLFO.setSliderStyle(Slider::TwoValueVertical);
filterLFO.setMinValue(0.0f,dontSendNotification,false);
filterLFO.setMaxValue(10.0f, dontSendNotification, false);
filterLFO.setTextBoxStyle(Slider::NoTextBox, false, 0, 0);
filterLFOlabel.setText(“Rate”, dontSendNotification);
filterLFOlabel.attachToComponent(&filterLFO, true);
addAndMakeVisible(&filterLFO);
addAndMakeVisible(filterLFOlabel);filterLFOTree = new AudioProcessorValueTreeState::SliderAttachment(processor.tree,
“filterLFORate”, filterLFO);
I’m not sure if i’ve got to do something in my sliderValueChanged() method to stop it trying to call getValue()?
I’m also not sure what i should have in my PluginProcessor to get both of the values:
std::make_unique(“filterLFORate”, “filterLFORate”, NormalisableRange(0.0f, 10.0f,0.1f), 0.0f)