I have only recently started implementing in Projucer / Juce.
I have one problem that I’m trying to solve:
1- I use the GUI Editor in Projucer to create knobs and sliders
2- I want to use AudioProcessorValueTreeState::SliderAttachment for the parameters.
The problem is that Projucer GUI Editor creates unique pointers such as
which SliderAttachment constructor does not accept since it is expecting a reference to a slider:
new AudioProcessorValueTreeState::SliderAttachment(m_processor.m_treestate, m_sineSlider->getName(), m_sineSlider); // Does not compile
Since last parameter of the constructor is pass by reference:
const String& parameterID,
Slider& slider );
I prefer not to go back to manually generating UI so I’m wondering if there’s a way to do this?