Am 31.10.11 15:28, schrieb Andy Farnell:

Then you need a counter modulo 10 to bang
the value currently held in a float box.


|
[t    b     f]
|           |
[f]X[+ 1]   |
|           |
[mod 10]    |
|           |
[sel 0]     |
|           |
[ f          ]
|



i think, it would be safer to put the modulo inside the counter.


#N canvas 472 323 556 362 10;
#X obj 189 184 f;
#X obj 259 184 + 1;
#X msg 285 131 0;
#X obj 189 206 sel 0;
#X obj 140 250 list;
#X obj 140 272 list trim;
#X obj 162 90 inlet input;
#X obj 140 294 outlet output;
#X obj 402 86 inlet ratio;
#X obj 299 184 mod \$1;
#X text 38 56 every xth input message gets trough;
#X obj 285 106 t b;
#X obj 285 86 inlet reset;
#X text 48 25 1_out_of <x>;
#X obj 162 124 t b a;
#X text 259 243 input can be anything;
#X obj 402 108 t f;
#X connect 0 0 1 0;
#X connect 0 0 3 0;
#X connect 1 0 9 0;
#X connect 2 0 0 1;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 7 0;
#X connect 6 0 14 0;
#X connect 8 0 16 0;
#X connect 9 0 0 1;
#X connect 11 0 2 0;
#X connect 12 0 11 0;
#X connect 14 0 0 0;
#X connect 14 1 4 1;
#X connect 16 0 9 1;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to