hello list,
I am having a problem with the reference file for counter object (GEM).
If I open the original file, and click at the bang on right, several
times, I never get the message done1. But, in the counter_modified, I get.
Is the original file wrong? Or it was done for another version of GEM?
I had a problem with the value for direction, too. To make the counter
go up and down, I had to use 2, and not 3.
What I am trying to do: a counter wherer the max number be randomic. So,
I need to know when the counter cycle is finished, to generate another
number again. To make this work, I need to know what outlet generates a
bang when a cycle is completed, to send the bang to random object.
bye,
andrei
--
RGB Design Digital
www.rgbdesigndigital.com.br
#N canvas 597 145 600 590 10;
#X text 124 68 GEM object;
#X obj 123 298 print out1;
#X text 138 23 counter;
#X msg 123 97 bang;
#X text 58 362 counter counts the number of bangs;
#X obj 123 220 counter 0 5;
#X msg 319 154 bang;
#X text 58 394 The third argument is the direction 1 == up 2 == down 3 == up and down;
#X obj 319 297 print out2;
#X obj 319 219 counter 0 5 3;
#X obj 195 265 print done1;
#X obj 405 267 print done2;
#X text 58 439 The right outlet sends a bang when the counter rolls over. The bang occurs after the left inlet sends the value.;
#X msg 147 129 direction;
#X msg 171 154 low value;
#X msg 195 182 high value;
#X msg 71 176 reset;
#X msg 26 177 clear;
#X text 58 524 A reset message will set the counter back to the starting value and send the value out the left outlet.;
#X text 58 486 A clear message will set the counter back to the starting value.;
#X text 331 189 count from 0 to 5 and back down to 0;
#X connect 3 0 5 0;
#X connect 5 0 1 0;
#X connect 5 1 10 0;
#X connect 6 0 9 0;
#X connect 9 0 8 0;
#X connect 9 1 11 0;
#X connect 13 0 5 1;
#X connect 14 0 5 2;
#X connect 15 0 5 3;
#X connect 16 0 5 0;
#X connect 17 0 5 0;
#N canvas 312 24 602 592 10;
#X text 124 68 GEM object;
#X obj 123 298 print out1;
#X text 138 23 counter;
#X msg 123 97 bang;
#X text 58 362 counter counts the number of bangs;
#X obj 123 220 counter 0 5;
#X msg 319 154 bang;
#X text 58 394 The third argument is the direction 1 == up 2 == down
3 == up and down;
#X obj 319 297 print out2;
#X obj 195 265 print done1;
#X obj 405 267 print done2;
#X text 58 439 The right outlet sends a bang when the counter rolls
over. The bang occurs after the left inlet sends the value.;
#X msg 147 129 direction;
#X msg 171 154 low value;
#X msg 195 182 high value;
#X msg 71 176 reset;
#X msg 26 177 clear;
#X text 58 524 A reset message will set the counter back to the starting
value and send the value out the left outlet.;
#X text 58 486 A clear message will set the counter back to the starting
value.;
#X text 331 189 count from 0 to 5 and back down to 0;
#X obj 319 219 counter 0 5 2;
#X connect 3 0 5 0;
#X connect 5 0 1 0;
#X connect 5 2 9 0;
#X connect 6 0 20 0;
#X connect 12 0 5 1;
#X connect 13 0 5 2;
#X connect 14 0 5 3;
#X connect 15 0 5 0;
#X connect 16 0 5 0;
#X connect 20 0 8 0;
#X connect 20 1 10 0;