You're correct about using [select], my messy version used moses with a bang after it in a similar way. Actually, I guess the most complex part of my patch WAS the integration of multiple counter modes. I'm still stuck w/ spigot mayhem...curses!
~Kyle
On 5/6/07, Frank Barknecht fbar@footils.org wrote:
Hallo, Kyle Klipowicz hat gesagt: // Kyle Klipowicz wrote:
This is a great little tutorial, but where is an elegant solution for an updown-type counter? I made one a few weeks ago, but it was a mess of spigots. I am curious if there is a more efficient (and readable) way to do this with an idiom.
A quick way would be to use [select] to reset the direction by sending "1" or "-1" to the [+ 1]. See attached. [select] is a bit dangerous in counters, though, as you might never reach the select number if you directly set the counter with a float, or if you change the borders, but for quick up-down-counting it works.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list