I just want to count : 0,1,2,3,4,0,1,2,3,4,0,1,2... by continuously hitting a bang. Can somebody tell me why this isn't working? Thanks, Brad.
why don't you use [counter] ?
attached a working version of your construct...
Am 05.11.2005 um 20:36 schrieb Brad Kligerman:
I just want to count : 0,1,2,3,4,0,1,2,3,4,0,1,2... by continuously
hitting a bang. Can somebody tell me why this isn't working? Thanks, Brad. <counter-1.pd> _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On Nov 5, 2005, at 3:33 PM, Marc Lavallée wrote:
Le 5 Novembre 2005 15:22, Max Neupert a écrit :
why don't you use [counter] ?
attached a working version of your construct...
Here's an alternative version
Here's yet another version, just to compare:
.hc
http://at.or.at/hans/
hi list,
theoretically if this patch runs a while the number [float] has to
store becomes very high. could this be a (performance-) problem at
one point?
just curious.
Am 10.11.2005 um 00:03 schrieb Hans-Christoph Steiner:
On Nov 5, 2005, at 3:33 PM, Marc Lavallée wrote:
Le 5 Novembre 2005 15:22, Max Neupert a écrit :
why don't you use [counter] ?
attached a working version of your construct...
Here's an alternative version
Here's yet another version, just to compare:
Hallo, Max Neupert hat gesagt: // Max Neupert wrote:
theoretically if this patch runs a while the number [float] has to
store becomes very high. could this be a (performance-) problem at
one point?
No performance problem, however it will wrap around at some (very far) point, so you will get wrong results.
Frank Barknecht _ ______footils.org_ __goto10.org__
Frank Barknecht wrote:
Hallo,
No performance problem, however it will wrap around at some (very far) point, so you will get wrong results.
no it won't wrap. all the numbers are stored as floating-point values. when numbers get very high, floating-point won't be able to increment the number by a small amount (like 1.0); thus the counter will stop to count!
mfg.asdr IOhannes
On Thu, 10 Nov 2005, Max Neupert wrote:
theoretically if this patch runs a while the number [float] has to store becomes very high. could this be a (performance-) problem at one point? just curious.
No, floats are of fixed size, and generally always take the same amount of time to handle (except for the P4 bug).
With a float32 you should be able to count up to 16777216 and then it will get stuck (or skip) because the result has to be rounded: 16777215 is the biggest odd number in float32.
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada
Tis true. Add a [select 0] to make it infinite:
.hc
On Nov 10, 2005, at 7:08 AM, Max Neupert wrote:
hi list,
theoretically if this patch runs a while the number [float] has to
store becomes very high. could this be a (performance-) problem at one
point?just curious.
Am 10.11.2005 um 00:03 schrieb Hans-Christoph Steiner:
On Nov 5, 2005, at 3:33 PM, Marc Lavallée wrote:
Le 5 Novembre 2005 15:22, Max Neupert a écrit :
why don't you use [counter] ?
attached a working version of your construct...
Here's an alternative version
Here's yet another version, just to compare:
"Terrorism is not an enemy. It cannot be defeated. It's a tactic.
It's about as sensible to say we declare war on night attacks and
expect we're going to win that war. We're not going to win the war on
terrorism."
-
retired U.S. Army general, William Odom
Hallo, Brad Kligerman hat gesagt: // Brad Kligerman wrote:
I just want to count : 0,1,2,3,4,0,1,2,3,4,0,1,2... by continuously hitting a bang. Can somebody tell me why this isn't working?
Yes, see here: http://royalrabbit.goto10.org/svn/goto10/pd-patches/fbar/tuts/counting.pd
You should use the float outlet for counting, and you can build a restricted counter using [mod] (it's also called a "modulo-n-counter".
Frank Barknecht _ ______footils.org_ __goto10.org__