[PD] Toggle Status

Frank Barknecht fbar at footils.org
Tue Apr 26 12:01:23 CEST 2011


Hi,

On Sun, Apr 24, 2011 at 05:47:44PM +0200, IOhannes m zmoelnig wrote:
> > Also, I started coding a "get" method for canvases, which happens to do 
> > what Miller describes in his comment about the above patch.
> > 
> so in the meantime you can either apply a diff to the sources of Pd, recompile
> Pd and change your patch accordingly, so it is incompatible with all past versions of Pd (and
> probably a number of future versions of Pd as well), or use [f] to store the
> values of [tgl] and query them via bang, change your patch accordingly and be
> happy.
> 
> i'm not saying that things should be kept deliberately complicated, but it is
> really simple to implement what you need with what is there.
> 
> mfdst
> IOhannes
> 
> PS: you could also "double bang" the toggle, which wil give you the current
> value and will restore this value. or use "bang" + "set <value>" to restore the
> original.

PPS: Or make a GOP abstraction around [tgl] wrapping whatever added
functionality you desire into it. Attached is a [gtgl] abstraction with a "get"
method.

Ciao
-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtgl-help.pd
Type: application/puredata
Size: 757 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110426/76992c93/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtgl.pd
Type: application/puredata
Size: 534 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110426/76992c93/attachment-0001.bin>


More information about the Pd-list mailing list