Re: [PD] beginner's question - counter inside a counter?
On 20.11.2010 14:51, 2bad4...@london.com wrote: > > Hello, > > I have built a counter that counts from 1 to 19 and then starts again from > the beginning. > > It reads the values from the array. However I would like it to stop after it > reads the values three times. I was thinking of using another counter to do > that. Any suggestions? Where should I put the other counter and how would it > work? You could count from 0 to 3*19, and then use [mod 19] and [+ 1] to get the desired values from 0 to 19. When you read 3*19, stop it. By the way: The "standard way" in Pd to do a counter is to use the [f] X [+ 1] idiom. cu Thomas -- "Spielen Sie Strip Schnipp-Schnapp?" (Adam Weishaupt to Johann Wolfgang von Goethe in: Robert Shea & Robert A. Wilson, The Golden Apple) http://www.residuum.org/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] beginner's question - counter inside a counter?
Hello, Not sure it's the best way to do it but as a beginner too, i would do it this way 2010/11/20 <2bad4...@london.com> > > Hello, > > I have built a counter that counts from 1 to 19 and then starts again > from the beginning. > > It reads the values from the array. However I would like it to stop after > it reads the values three times. I was thinking of using another counter to > do that. Any suggestions? Where should I put the other counter and how would > it work? > > Thanks for your help. > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > -- Alexandre Lard http://alexandre.lard.free.fr counter_2.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] beginner's question - counter inside a counter?
maybe something like this ? (attached) gr, Tim 2010/11/20 <2bad4...@london.com> > > Hello, > > I have built a counter that counts from 1 to 19 and then starts again > from the beginning. > > It reads the values from the array. However I would like it to stop after > it reads the values three times. I was thinking of using another counter to > do that. Any suggestions? Where should I put the other counter and how would > it work? > > Thanks for your help. > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > #N canvas 452 99 572 539 10; #X obj 64 33 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 ; #X obj 64 111 f; #X obj 98 111 + 1; #X obj 64 156 mod 19; #X obj 64 206 tabread abc; #X obj 64 238 osc~; #X obj 65 274 *~; #X obj 65 309 dac~; #X obj 116 246 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 163 82 sel 0; #X obj 163 59 < 56; #X obj 163 124 t f f; #X msg 163 104 0; #X floatatom 86 179 5 0 0 0 - - -; #X obj 64 62 metro 100; #X connect 0 0 14 0; #X connect 1 0 2 0; #X connect 1 0 3 0; #X connect 1 0 10 0; #X connect 2 0 1 1; #X connect 3 0 4 0; #X connect 3 0 13 0; #X connect 4 0 5 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 6 0 7 1; #X connect 8 0 6 1; #X connect 9 0 12 0; #X connect 10 0 9 0; #X connect 11 0 0 0; #X connect 11 1 1 1; #X connect 12 0 11 0; #X connect 14 0 1 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] beginner's question - counter inside a counter?
Hello, I have built a counter that counts from 1 to 19 and then starts again from the beginning. It reads the values from the array. However I would like it to stop after it reads the values three times. I was thinking of using another counter to do that. Any suggestions? Where should I put the other counter and how would it work? Thanks for your help. counter.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list