What prevents me from having a minimum value of a parameter greater than the maximum value? #293
Unanswered
hyperpenelope
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The 'issue'
At the moment, it does not seem possible to define a parameter in a Camomile plugin which is (a) visible to the DAW and (b) has a 'minimum' value which is greater than the parameter's 'maximum' value.
In Pd, it is possible to make a slider with an output range such that the 'lower' limit is greater than the 'upper' limit. For example, you can make a slider start at 100 and decrease to 0 as the cursor is dragged to the right.
I tried to replicate this behaviour in a Camomile LV2 plugin (based on a Pd patch which included a decreasing slider). I defined a parameter in PluginName.txt as follows:
Building the plugin with the
camomile
script went fine. When I tried to load the plugin in Ardour, it said that there was an error loading the plugin. There were no informative messages in Ardour's log. However, the plugin loaded fine when I kept everything the same except for changing the definition of the parameter to:so that the minimum value was actually less than the maximum value. I concluded that the parameter which decreases from its minimum to maximum value was causing the issue with loading the plugin.
My questions
As things go, this is not a serious issue and can be worked around - e.g. you can still have a Pd slider controlling the parameter which decreases from 100 to 0, while defining the parameter to have a minimum of 0 and maximum of 100 from the DAW's point of view. Nevertheless, I have a couple of questions.
Beta Was this translation helpful? Give feedback.
All reactions