How to set a parameter version hint?

Hello,

I am following along with the arpeggiator tutorial and I am running into an error that requires the version hint for my speed parameter to be some integer above 0.

I am struggling with my syntax in the documentation for AudioProcessorParameter at this link:
https://docs.juce.com/master/classAudioProcessorParameter.html#a7022e0d84cfc013effd47f70cb3e7975

How do I set the version hint for a parameter?

You can pass a ParameterID { "id", versionHint } as the first argument of a parameter constructor.

There’s an example in the AudioPluginDemo project:

3 Likes

Wouldn’t it be a good idea to demonstrate this concept here? : JUCE: Tutorial: Adding plug-in parameters

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 Like