To Kyle
mvh Steffen Leve Poulsen
#N canvas 254 194 637 394 12; #X obj 240 147 f; #X obj 275 146 + 1; #X obj 240 176 mod; #X obj 240 241 -; #X obj 240 268 abs; #X floatatom 240 309 5 0 0 0 - - -; #X obj 240 35 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X floatatom 403 76 5 0 0 0 - - -; #X obj 403 156 * 2; #X obj 240 63 metro 234; #X obj 306 305 print; #X obj 502 35 16; #X obj 502 9 loadbang; #X connect 0 0 2 0; #X connect 1 0 0 1; #X connect 2 0 1 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 4 0 10 0; #X connect 6 0 9 0; #X connect 7 0 3 1; #X connect 7 0 8 0; #X connect 7 0 0 1; #X connect 8 0 2 1; #X connect 9 0 0 0; #X connect 11 0 7 0; #X connect 12 0 11 0; #X connect 12 0 9 0;
An up&down counter with settable current value, minimum value and maximum value that also works with negative number.
Instantiate the counter with 2 arguments: the min and the max values
Tom
---- up&down.pd ----
#N canvas 0 0 571 568 10; #X obj 62 38 inlet; #X obj 246 544 outlet; #X obj 73 84 b; #X obj 91 137 f 1; #X obj 106 228 + $1; #X obj 373 411 t b b; #X obj 370 448 f $2; #X obj 3 449 t b b; #X obj 29 499 f $1; #X obj 318 486 t f f; #X msg 29 165 1; #X msg 215 125 -1; #X obj 91 271 t f f f; #X obj 120 337 > $1; #X obj 246 430 moses $2; #X obj 355 63 inlet set; #X obj 51 387 spigot; #X obj 73 323 t f f; #X obj 81 360 == 0; #X obj 129 387 spigot; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 12 0; #X connect 5 0 6 0; #X connect 5 1 11 0; #X connect 6 0 9 0; #X connect 7 0 8 0; #X connect 7 1 10 0; #X connect 8 0 9 0; #X connect 9 0 1 0; #X connect 9 1 4 1; #X connect 10 0 3 1; #X connect 11 0 3 1; #X connect 12 0 17 0; #X connect 12 1 13 0; #X connect 12 2 4 1; #X connect 13 0 18 0; #X connect 13 0 19 1; #X connect 14 0 1 0; #X connect 14 1 5 0; #X connect 15 0 4 1; #X connect 16 0 7 0; #X connect 17 0 16 0; #X connect 17 1 19 0; #X connect 18 0 16 1; #X connect 19 0 14 0;
Thomas Ouellet Fredericks wrote:
Instantiate the counter with 2 arguments: the min and the max values
I dont understand that object, where should i set the min and the max value? where is the counter?
Someone can give a patch using it?
br. GARFF
Date: Sun, 6 May 2007 10:31:58 -0400 From: tof@danslchamp.org To: pd-list@iem.at Subject: Re: [PD] up-down-counter.pd
An up&down counter with settable current value, minimum value and maximum value that also works with negative number.
Instantiate the counter with 2 arguments: the min and the max values
Tom
---- up&down.pd ----
#N canvas 0 0 571 568 10; #X obj 62 38 inlet; #X obj 246 544 outlet; #X obj 73 84 b; #X obj 91 137 f 1; #X obj 106 228 + $1; #X obj 373 411 t b b; #X obj 370 448 f $2; #X obj 3 449 t b b; #X obj 29 499 f $1; #X obj 318 486 t f f; #X msg 29 165 1; #X msg 215 125 -1; #X obj 91 271 t f f f; #X obj 120 337 > $1; #X obj 246 430 moses $2; #X obj 355 63 inlet set; #X obj 51 387 spigot; #X obj 73 323 t f f; #X obj 81 360 == 0; #X obj 129 387 spigot; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 12 0; #X connect 5 0 6 0; #X connect 5 1 11 0; #X connect 6 0 9 0; #X connect 7 0 8 0; #X connect 7 1 10 0; #X connect 8 0 9 0; #X connect 9 0 1 0; #X connect 9 1 4 1; #X connect 10 0 3 1; #X connect 11 0 3 1; #X connect 12 0 17 0; #X connect 12 1 13 0; #X connect 12 2 4 1; #X connect 13 0 18 0; #X connect 13 0 19 1; #X connect 14 0 1 0; #X connect 14 1 5 0; #X connect 15 0 4 1; #X connect 16 0 7 0; #X connect 17 0 16 0; #X connect 17 1 19 0; #X connect 18 0 16 1; #X connect 19 0 14 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMain...
Hallo, Javier Garcia hat gesagt: // Javier Garcia wrote:
Thomas Ouellet Fredericks wrote:
Instantiate the counter with 2 arguments: the min and the max values
I dont understand that object, where should i set the min and the max value? where is the counter?
Someone can give a patch using it?
As counting is a such an important technique to know, I'd recommend to spend some time on learning how to build counters. Maybe attached tutorial helps a bit.
Frank Barknecht _ ______footils.org__
hi
here is some information about how to use abstractions and arguments. i think it's a must to know how to use abstractions and arguments in puredata :-)
http://puredata.hurleur.com/sujet-1187-abstraction-why-use-etc
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s7.1
basically u can copy/paste the patch starting from #N canvas until the last #X connect and save it with a texteditor with a ".pd" suffix i.e "up-down-counter.pd" . then make a new patch and save it to the same directory. now u can create an object [up-down-counter 0 9] or [up-down-counter -100 0]
good luck eni
On Dec 4, 2007, at 12:45 AM, Javier Garcia wrote:
Thomas Ouellet Fredericks wrote:
Instantiate the counter with 2 arguments: the min and the max values
I dont understand that object, where should i set the min and the max value? where is the counter?
Someone can give a patch using it?
br. GARFF
Date: Sun, 6 May 2007 10:31:58 -0400 From: tof@danslchamp.org To: pd-list@iem.at Subject: Re: [PD] up-down-counter.pd
An up&down counter with settable current value, minimum value and maximum value that also works with negative number.
Instantiate the counter with 2 arguments: the min and the max values
Tom
---- up&down.pd ----
#N canvas 0 0 571 568 10; #X obj 62 38 inlet; #X obj 246 544 outlet; #X obj 73 84 b; #X obj 91 137 f 1; #X obj 106 228 + $1; #X obj 373 411 t b b; #X obj 370 448 f $2; #X obj 3 449 t b b; #X obj 29 499 f $1; #X obj 318 486 t f f; #X msg 29 165 1; #X msg 215 125 -1; #X obj 91 271 t f f f; #X obj 120 337 > $1; #X obj 246 430 moses $2; #X obj 355 63 inlet set; #X obj 51 387 spigot; #X obj 73 323 t f f; #X obj 81 360 == 0; #X obj 129 387 spigot; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 12 0; #X connect 5 0 6 0; #X connect 5 1 11 0; #X connect 6 0 9 0; #X connect 7 0 8 0; #X connect 7 1 10 0; #X connect 8 0 9 0; #X connect 9 0 1 0; #X connect 9 1 4 1; #X connect 10 0 3 1; #X connect 11 0 3 1; #X connect 12 0 17 0; #X connect 12 1 13 0; #X connect 12 2 4 1; #X connect 13 0 18 0; #X connect 13 0 19 1; #X connect 14 0 1 0; #X connect 14 1 5 0; #X connect 15 0 4 1; #X connect 16 0 7 0; #X connect 17 0 16 0; #X connect 17 1 19 0; #X connect 18 0 16 1; #X connect 19 0 14 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última MSN Newsletters _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
now u can create an object [up-down-counter 0 9] or [up-down-counter -100 0]
thanks, Enrique now works. The word "instantiate" (Thomas Ouellet wrote it) was the key. It was strange for me..
For newbies on counters, I want to add the final patch is this:
toggle | [metro 500] | [up-down-counter 0 9] | numeric box
CC: pd-list@iem.at; tof@danslchamp.org From: enrique@netpd.org Subject: Re: [PD] up-down-counter.pd Date: Tue, 4 Dec 2007 13:45:26 +0100 To: tirengarfio@hotmail.com
hi
here is some information about how to use abstractions and arguments. i think it's a must to know how to use abstractions and arguments in puredata :-)
http://puredata.hurleur.com/sujet-1187-abstraction-why-use-etc
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s7.1
basically u can copy/paste the patch starting from #N canvas until the last #X connect and save it with a texteditor with a ".pd" suffix i.e "up-down-counter.pd" . then make a new patch and save it to the same directory. now u can create an object [up-down-counter 0 9] or [up-down-counter -100 0]
good luck eni
On Dec 4, 2007, at 12:45 AM, Javier Garcia wrote:
Thomas Ouellet Fredericks wrote:
Instantiate the counter with 2 arguments: the min and the max values
I dont understand that object, where should i set the min and the max value? where is the counter?
Someone can give a patch using it?
br. GARFF
Date: Sun, 6 May 2007 10:31:58 -0400 From: tof@danslchamp.org To: pd-list@iem.at Subject: Re: [PD] up-down-counter.pd
An up&down counter with settable current value, minimum value and maximum value that also works with negative number.
Instantiate the counter with 2 arguments: the min and the max values
Tom
---- up&down.pd ----
#N canvas 0 0 571 568 10; #X obj 62 38 inlet; #X obj 246 544 outlet; #X obj 73 84 b; #X obj 91 137 f 1; #X obj 106 228 + $1; #X obj 373 411 t b b; #X obj 370 448 f $2; #X obj 3 449 t b b; #X obj 29 499 f $1; #X obj 318 486 t f f; #X msg 29 165 1; #X msg 215 125 -1; #X obj 91 271 t f f f; #X obj 120 337 > $1; #X obj 246 430 moses $2; #X obj 355 63 inlet set; #X obj 51 387 spigot; #X obj 73 323 t f f; #X obj 81 360 == 0; #X obj 129 387 spigot; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 12 0; #X connect 5 0 6 0; #X connect 5 1 11 0; #X connect 6 0 9 0; #X connect 7 0 8 0; #X connect 7 1 10 0; #X connect 8 0 9 0; #X connect 9 0 1 0; #X connect 9 1 4 1; #X connect 10 0 3 1; #X connect 11 0 3 1; #X connect 12 0 17 0; #X connect 12 1 13 0; #X connect 12 2 4 1; #X connect 13 0 18 0; #X connect 13 0 19 1; #X connect 14 0 1 0; #X connect 14 1 5 0; #X connect 15 0 4 1; #X connect 16 0 7 0; #X connect 17 0 16 0; #X connect 17 1 19 0; #X connect 18 0 16 1; #X connect 19 0 14 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última MSN Newsletters _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMain...
On Tue, 4 Dec 2007, Javier Garcia wrote:
thanks, Enrique now works. The word "instantiate" (Thomas Ouellet wrote it) was the key. It was strange for me..
i haven't seen how Thomas uses the word, but btw, one instantiates a class, by creating an object. The object is "templated" according to the class. The behaviour is defined by a class. Even if internally all abstractions work from the same basic behaviour in pd, the fact that we call patching a kind of programming validates the idea that each abstraction file is a class.
An interface (aka protocol) is the set of what objects of a certain class can accept as arguments and messages (or signals), together with the set of what messages (or signals or I/O) the user can expect, and when. The more it works like other object classes, the less you may need to document it (depending on how the documentation is structured). A help file documents the interface of a class and not the class itself.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
Thanks a ton Steffen! I was guessing that the solution would be similar to this, but got frustrated and gave up (after some chaos involving a lot of spigots and spaghetti).
Thanks also to Frank and Thomas F for your assistance! I am sure that these included examples will go a long way to banishing the 'counter cult' externals from most common usage.
~Kyle
On 5/6/07, Steffen Leve Poulsen slagmark@worldonline.dk wrote:
To Kyle
mvh Steffen Leve Poulsen
#N canvas 254 194 637 394 12; #X obj 240 147 f; #X obj 275 146 + 1; #X obj 240 176 mod; #X obj 240 241 -; #X obj 240 268 abs; #X floatatom 240 309 5 0 0 0 - - -; #X obj 240 35 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X floatatom 403 76 5 0 0 0 - - -; #X obj 403 156 * 2; #X obj 240 63 metro 234; #X obj 306 305 print; #X obj 502 35 16; #X obj 502 9 loadbang; #X connect 0 0 2 0; #X connect 1 0 0 1; #X connect 2 0 1 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 4 0 10 0; #X connect 6 0 9 0; #X connect 7 0 3 1; #X connect 7 0 8 0; #X connect 7 0 0 1; #X connect 8 0 2 1; #X connect 9 0 0 0; #X connect 11 0 7 0; #X connect 12 0 11 0; #X connect 12 0 9 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list