How to set a parameter version hint?


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:

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:


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