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

On Wednesday, November 03, 2004 6:40 AM [GMT+1=CET],
Steve Harris <xxxS.W.Harris@xxxxxxxxxxxxxxxxxx> wrote:

> On Tue, Nov 02, 2004 at 02:21:30PM -0800, Tim Hockin wrote:
>> Anyone?
>>
>>
>> On Fri, Oct 29, 2004 at 08:45:01PM +0200, Koen Tanghe wrote:
>>> On Friday, October 29, 2004 7:28 AM [GMT+1=CET],
>>> Tim Hockin <xxxthockin@xxxxxxxxxxxxx> wrote:
>>>
>>>> Req 48:  GMPI plugins must be able to to present value strings for
>>>> parameter values which do not map linearly.
>>>
>>> Not entirely sure about this, but shouldn't the inverse be a requirement
>>> too:
>>>
>>> "GMPI plugins must be able to interpret given values strings (e.g. by
>>> the typed by the user) as textual representations of parameter values."
>
> Absolutly not. This is an internationalistion problem, eg interpreting
> "1001.0ms" and "1,000.0 milliseconds" and "1,001s". the point of the
> string rendering is to allow a user presentable form (pretty printing) of
> a port value. There is no need for it to be roundtripable.

IMHO, it can be handy that users are allowed to type in parameters (so not
only display).

What I was thinking of is this:
Host wants to supply a generic user interface (just a label and/or slider
and/or edit box for the user to type a value). If the user typed a character
string in an edit box, that string must be handed over to the plugin that
can then check if the string can be accepted as valid for that parameter or
not.

For scalars, this can probably be done by the host by interpretation of the
string as a scalar of the appropriate type and checking against the min and
max value, but I'm not sure the host will *always* be in a position to
handle this by itself without consulting the plugin (hence the thought that
we might need a "interpret this character string as a parameter"
functionality).

How should the host handle this if this functionality is not provided and
there is no custom GUI for the plugin, only the host-generated generic one?

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: