Hi, Is there some object like toggle, except more stateful - so instead of turning on with a '1' and off with a '0' it toggles between on and off each time it's banged?
Chris. ______________________________________________________ Chris McCormick - Systems Developer - PerthWeb Pty Ltd Internet Solutions for your business! Level 9/105 St George's Tc - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 Visit Perth online! : www.perthweb.com.au PGP Key = http://www.perthweb.com.au/~chris/public.txt
I don't believe that there is such an object...but it's easy enough to build.
See the attachment - note that the first bang will send '0', then every subsequent bang will toggle between '1' and '0'.
----- Original Message ----- From: "Chris McCormick" chris@perthweb.net.au To: pd-list@iem.kug.ac.at Sent: Thursday, June 20, 2002 8:19 PM Subject: [PD] toggling
Hi, Is there some object like toggle, except more stateful - so instead of turning on with a '1' and off with a '0' it toggles between on and off
each
time it's banged?
Chris. ______________________________________________________ Chris McCormick - Systems Developer - PerthWeb Pty Ltd Internet Solutions for your business! Level 9/105 St George's Tc - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 Visit Perth online! : www.perthweb.com.au PGP Key = http://www.perthweb.com.au/~chris/public.txt
At 22:41 20/06/2002 -0600, you wrote:
I don't believe that there is such an object...but it's easy enough to build.
See the attachment - note that the first bang will send '0', then every subsequent bang will toggle between '1' and '0'.
Awesome, that is perfect, Thanks very much. Will have to investigate the expr object.
Regards,
Chris.
Chris McCormick - Systems Developer - PerthWeb Pty Ltd Internet Solutions for your business! Level 9/105 St George's Tc - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 Visit Perth online! : www.perthweb.com.au PGP Key = http://www.perthweb.com.au/~chris/public.txt
Hi, Chris McCormick hat gesagt: // Chris McCormick wrote:
At 22:41 20/06/2002 -0600, you wrote:
I don't believe that there is such an object...but it's easy enough to build.
See the attachment - note that the first bang will send '0', then every subsequent bang will toggle between '1' and '0'.
Awesome, that is perfect, Thanks very much. Will have to investigate the expr object.
Actually. the standard GUI object "toggle" does the same, as shown in the attached patch.
Frank Barknecht _ ______footils.org__
At 08:50 21/06/2002 +0200, you wrote:
Hi, Chris McCormick hat gesagt: // Chris McCormick wrote:
At 22:41 20/06/2002 -0600, you wrote:
I don't believe that there is such an object...but it's easy enough to build.
See the attachment - note that the first bang will send '0', then every subsequent bang will toggle between '1' and '0'.
Awesome, that is perfect, Thanks very much. Will have to investigate the expr object.
Actually. the standard GUI object "toggle" does the same, as shown in the attached patch.
Ah! Strange, i seemed not to be able to get this behaviour last night. User error...
Chris.
Chris McCormick - Systems Developer - PerthWeb Pty Ltd Internet Solutions for your business! Level 9/105 St George's Tc - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 Visit Perth online! : www.perthweb.com.au PGP Key = http://www.perthweb.com.au/~chris/public.txt