[PD] getting the ranges from a slider

IOhannes m zmoelnig zmoelnig at iem.at
Wed Feb 22 08:45:42 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-02-21 20:41, D G wrote:
> Hi List
> I have been looking but have not found the way to ask a slider for the
> ranges it has been set to.
> 
> Is there a way to get a slider to print all its propperties? This will be
> useful to create a tool that makes randomness to any slider for a
> percentage depending on the ranges it is already set to. I obviously know
> the ranges, but have a huge number of sliders and [knob] objects so it
> would be painful to try to get them all.
> Also, if such a method exists, the randomic thing I wanna do could be
> implemented to any object without having to look at ist propperties.
> 
> Would appreciate help or leads to workitout.
> 

how about: normalize all slider ranges between 0..1 and transform the
output to the desired range only afterwards?

i always thought, that the MIDI-based default scaling of sliders and the
like was a step back, and that being able to specify the range has
little gain (though of course i use it...)

fgm,asdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9EnSYACgkQkX2Xpv6ydvS7GwCgpO45m+ngMiU9EHd3lLb5W7Pb
FM8AoOQuzXgGVNP+jz+88rUKCfkiPfSz
=NnuF
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120222/fc8bec0a/attachment.bin>


More information about the Pd-list mailing list