[gmpi] Re: lost-n-found #3 parameter stuff

On Thursday, November 04, 2004 10:18 PM [GMT+1=CET],
Steve Harris <xxxS.W.Harris@xxxxxxxxxxxxxxxxxx> wrote:

>>>> IMHO, it can be handy that users are allowed to type in parameters (so
>>>> not only display).
>>>
>>> Sure, but it doesnt require any specification, the UI can just provide a
>>> textbox.
>>
>> Of course, and that's the point I was trying to make ;-)
>> Please talk me through this:
>> - so let's say the host UI provides a textbox
>> - the user types in some characters in that textbox
>> - how does the host communicate a new parameter value to the plugin,
>> when it has only the string given by the user?
>
> using atof() ;) seriously, this is not hard, many LADSPA hosts do this
> today.

Please Steve, if we start arguing that way, we could as well dismiss of the
param --> string conversion too and "just use printf", right? Of course *I*
know when I should just use atof(), but the host doesn't always.

Let's say I have a string type parameter that takes chord sequences as
textual input (like "Am7 C Gm" for example), and I want the user to be able
to type this in. The host can provide a textbox and you're doing your atof()
thing. Great...
And there are more examples where the plugin must do the interpretation of
the given input string (without needing a special GUI object). The point is
that the plugin should be able to decide how to handle given string inputs,
and I thought we needed a mechanism to allow that (as we do for the
"value-to-display string" case).

As matter of fact, Audio Units seem to do something similar to what Mike was
saying (using some enums for well-known predefined parameter types). I don't
know if it's possible to get a hook to do your own interpretation though if
you needed that.

Koen


----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: