Plugins (VST2, VST3, AU) Parameters Range

DSP, Plug-in and Host development discussion.
User avatar
xhunaudio
KVRian
887 posts since 17 Feb, 2010

Post Fri Dec 03, 2021 5:41 am

Hello,

I noticed there is at least one DAWs/Hosts that handle VST parameters exclusively from 0 to 1.

So, if I have a VST2 or VST3 plugin with a parameter going from 0 to 15 (for example a MIDI Channel selector) and I set it to eg.:"14" ;

when I save the DAW project and then I reload it, that parameter value (originally 14) is clamped to 1.

Is that a bad behaviour of that specific Host/DAW or there's a (non-written) rule (I'm not aware of) for which VST, VST3, AU parameters have to be compatible exclusively with the 0-1 range ? (so, making 0-15 illegal)

Thank you for any help...
bruno @ Xhun Audio || www.xhun-audio.com || Twitter || Facebook || Instagram
Image

mystran
KVRAF
6743 posts since 12 Feb, 2006 from Helsinki, Finland

Post Fri Dec 03, 2021 6:23 am

In VST2 by spec the valid range for every parameter is [0,1]. No idea about VST3. AU let's you specify the ranges you want.
Preferred pronouns would be "it/it" because according to this country, I'm a piece of human trash.

User avatar
xhunaudio
KVRian

Topic Starter

887 posts since 17 Feb, 2010

Post Fri Dec 03, 2021 7:39 am

Thank you mystran
bruno @ Xhun Audio || www.xhun-audio.com || Twitter || Facebook || Instagram
Image

xoxos
Mr Entertainment
12372 posts since 30 Apr, 2002 from i might peeramid

Post Sat Dec 04, 2021 3:57 am

mystran wrote:
Fri Dec 03, 2021 6:23 am
In VST2 by spec the valid range for every parameter is [0,1]. No idea about VST3. AU let's you specify the ranges you want.
this is definately indicated early in the documentation for vst3.
you come and go, you come and go. amitabha neither a follower nor a leader be tagore "where roads are made i lose my way" where there is certainty, consideration is absent.

User avatar
Markus Krause
KVRian
1152 posts since 2 Jul, 2018

Post Sat Dec 04, 2021 4:15 am

The values must be within [0,1]. Although other values seem to work it's not safe to use this. You could run into trouble with various DAWs
Tone2 Audiosoftware https://www.tone2.com

User avatar
xhunaudio
KVRian

Topic Starter

887 posts since 17 Feb, 2010

Post Sat Dec 04, 2021 12:50 pm

Thank you for your suggestions,

since I'm on WDL-OL (IPlug), I want to see if using SetNormalized() - instead of Set() - will save the day for that parameters (5% of the total) not in the 0-1 range.
bruno @ Xhun Audio || www.xhun-audio.com || Twitter || Facebook || Instagram
Image

Return to “DSP and Plug-in Development”