[PD] Vslider (runtime) range change.
IOhannes m zmoelnig
zmoelnig at iem.at
Mon Aug 7 10:14:44 CEST 2006
Tas Pas wrote:
> Hi list,
>
> Is there a way to change the range of a vslider, or, in general, of a gui object, RUNTIME?
yes and no.
a) one possibility is documented in the help-patches of the
iemgui-objects (there is a [pd edit] which shows a lot of magic).
i don't know of such a possibility for the normal numberbox | \ (this
accounts for the "no" in the answer above)
b) apply a little math to the output of the slider. for changing the
range of the slider; consider using the well known but artist
threatening formula "y=kx+d" with x being the untransformed output of
the slider. if you are more into math, you can also change the
characteristics of the slider from linear to exponential to logarithmic
to whatever-you-can-think-of.
mfg.adsr
IOhannes
More information about the Pd-list
mailing list