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

  • From: Mike Berry <mberry@xxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Thu, 04 Nov 2004 13:09:07 -0700

The way that we are dealing with this is by allowing a plugin to mark a parameter as one of a set of well known types. For instance, the plugin can mark the parameter type as Decibels and give min an max values. A list of suggested well known types:

Decibels
Amplitude
Frequency
Time
Percent

Now the host can use a hot text for any parameters that are well known. It also knows how to convert its string to a parameter display value. The parameter display value is then sent to the plugin for conversion to real value. This method means that we can bypass all the localization issues of sending strings to plugins to have them convert into parameters.
If the parameter type is not well known, then the host does not use a hot text.
AfterEffects uses a similar method to this, separating display values from real values.


Mike

Koen Tanghe wrote:

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


On Thu, Nov 04, 2004 at 01:35:09AM +0100, Koen Tanghe 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?

Koen


PS My thoughts were: - the host sends the entered value string to the plugin - the plugin does the necessary conversion from the string to a value (taking into account the localization settings, maybe using some GMPI provided set of common functions to help with this?) - the plugin either accepts the value or refuses it, and lets the host know


---------------------------------------------------------------------- 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: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe



-- Mike Berry Adobe Systems


---------------------------------------------------------------------- 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: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: