Re: [linux-audio-dev] TAP-plugins reverb presets

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] TAP-plugins reverb presets
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Fri Mar 05 2004 - 15:54:45 EET


On Fri, Mar 05, 2004 at 02:40:08 +0100, Alfons Adriaensen wrote:
> > eg. gate(1410) has -1.0 -> "key listen", 0.0 -> "gate", 1.0 -> "bypass"
> > and you might reasonably want non integer values for enumerations.
> >
> > - Steve
>
> HINT_ENUMERATED must always be used together with HINT_INTEGER.
> Hosts that have not yet implemented it will see the port as a
> normal integer valued port.

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.
 
> Then for you example MIN = -1, MAX = 1, and the three string could
> be "Key listen", "Gate", "Bypass". The actual range is not important
> int this case. For a list of presets one would of course use 0..N-1
> or 1..N. It's up to host whether to display the index along with the
> label or not. I wouldn't do it.

Right, in the integer hint case I dont see why you would.

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.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Mar 05 2004 - 15:53:30 EET