From: D G mami.music@gmail.com To: pd-list@iem.at Sent: Tuesday, February 21, 2012 2:41 PM Subject: [PD] getting the ranges from a slider
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.
I wrote a patch for a canvas "get" method:
http://sourceforge.net/tracker/?func=detail&aid=3308027&group_id=557...
The downside: whatever the programming equivalent of "through-composed" is, that would
describe the way I coded this. matju gave me some suggestions for making it easier to
register the symbols for the attributes. Also for iemguis, you probably want the results to
be sent by default to a 2nd outlet which you would add to the object. (I think there's a
patched version of [tgl] on the tracker that does this.)
One other downside: the only practical way I've found to print _all_ properties in response to
one message is as a sequence of messages that flow from the outlet or specified receive-name.
If you try to use such objects recursively Pd won't catch your buffer-overflow mistakes:
[r oops] | [60 1, 61 1, 62 1, 63 1, flush( | [bag] | [s oops]
-Jonathan
Would appreciate help or leads to workitout.
Thanks
D _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list