On Fri, 5 Mar 2004, Steve Harris wrote:
OK, thats a reasonable definition for enumerations,
but its missing the
non-ionteger eqivalent, "scale points" or whatever you want to callthem,
eg in ringmod_2i1o(1188) "Modulation depth (0=none, 1=AM, 2=RM)" input,
control, 0 to 2, default 0. its not an integer control, its a continuous
valued control with specific meanings at specific points. Another example
is an oscilator control knob in LFO modules with contiunous varition
through sine, tri, saw, square.
I'l grant you that this case is less common, but its still one of the
"neccesary" control types.
First: In general I don't understand why the difficulties to fix problem 2
(continuos controls with certain meanings) should prevent us from solving
problem 1 (the enumerations) where Fons already suggested a perfect solution.
Moreover, as you already granted, problem 2 is less severe.
Usually the meaning of certain points is displayed in the port name (as in
the examples you mentioned). I don't know of any plugin where there are
more than 3 defined points, so the string won't be too long for this and
using just a slider control seems fine.
I dont think what you're prosoing is an
unacceptably bad hack (though I
dont think its a good one either), but I do think the RDF solution is
much cleaner.
So, will that make it into the next LADSPA spec ?
Matthias
--
Dr. Matthias Nagorni
SuSE Linux AG
Maxfeldstr. 5 phone: +49 911 74053375
D - 90409 Nuernberg fax : +49 911 74053483