Of course it’s easy to check the demo code, but that’s not where noobs will start. (I’m far from noob, but my first place to check was the tutorial, next was the forum; demo code is usually my last port of call.)
+1 for updating the tutorial docs. I was scratching my head on this for a while (as I am a newbie), but figured out that with the Juce upgrade, they must have added a new assert to check for the version number to be non zero. Declaring the ParameterID with its constructor lets us set the version number.
Excuse me. It seems that this doesn’t work with unique_ptr.
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/unique_ptr.h:686:30 Call to deleted constructor of 'juce::AudioParameterFloat'
Am I supposed to give up using juce::AudioProcessorValueTreeState::ParameterLayout?