Re: Hardware control surfaces (was Re: Private Parameters)
Re: Hardware control surfaces (was Re: Private Parameters)
- Subject: Re: Hardware control surfaces (was Re: Private Parameters)
- From: Chris Reed <email@hidden>
- Date: Fri, 18 Jul 2003 14:51:43 -0500
On Friday, Jul 18, 2003, at 05:09 US/Central, Jim Wintermyre wrote:
Actually, VST does have a routine that allows you to specify the
ordering of parameters for "display" purposes (where "display" could
be either a generic UI, or external hardware controller). That
routine is called getParameterProperties(). It allows you to specify
a number of other useful things which would be useful for a hardware
controller to know, such as a "shortened" param name, whether a param
is a switch/discrete/continuous, display "categories" (which would be
like the related control groups you mention above) etc. Unfortunately
most hosts don't support this routine, or only partially support it.
One host which does support it in part is Logic, and it is very
helpful for making Logic Control work well with with VST plugs.
The shortened param name in particular is another thing that is missing
from the AU spec. The way I'd prefer to see it implemented is: add a
new property that lets the host query for a parameter's name given a
number of characters that it has to fit in.
enum {
kAudioUnitProperty_ParameterShortName = ?
};
typedef struct {
AudioUnitParameterID mParamID;
SInt32 mNumberCharacters;
CFStringRef mShortName;
} AUParameterShortName;
You call AudioUnitGetProperty, passing in a pointer to an
AUParameterShortName structure with the mParamID and mNumberCharacters
fields filled out. Upon returning, the mShortName field will contain a
name that fits within mNumberCharacters.
There is also no way to specify that a parameter should appear on a
knob/slider or a switch when presented on a control surface.
-chris
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.