Check out [s-midiloop] for something similar. It's SSSAD saveable! Best,
Chris. On Mon, May 05, 2008 at 02:38:38PM +0200, altern wrote: > thanks! i also added loop to it. see attached > > enrike > > Claude Heiland-Allen(e)k dio: > >This can be done with [pipe] and [list-drip] from list-abs, no externals > >required. See attached. Note: this works in "Pd-standard" ms instead > >of s, but the fix is trivial. > > > >Hope this is useful, > > > > > >Claude > > > >altern wrote: > >>hi > >> > >>i needed to schedule a sequence of events, in this case start/stop > >>certain parts of a patch over time. I wanted to be able to pass to an > >>abstraction a list of time intervals (in secs and with variable > >>length) and then get output a series of bangs after each of the > >>intervals. I attach the solution I found, not sure if this is clever > >>or there is maybe something already done for this? I use drip, coll > >>and delay. > >> > >>It receives a list of times like > >>2 3 0.5 > >>and outputs the index at the right time. In this case after 2 secs > >>outputs num 0, after 3 secs num 1, and after half a sec more outputs > >>num 2. > >> > >>I called it sequence but i bet this name is already taken and it would > >>be wise to rename it with another one. > >> > >>thanks for any feedback or ideas > >> > >>enrike > >> > >> > >>------------------------------------------------------------------------ > >> > >>_______________________________________________ > >>[email protected] mailing list > >>UNSUBSCRIBE and account-management -> > >>http://lists.puredata.info/listinfo/pd-list > > > > #N canvas 566 36 318 436 10; > #X obj 51 177 list-drip; > #X obj 51 228 t b f; > #X obj 51 263 f; > #X obj 77 263 + 1; > #X msg 124 200 0; > #X obj 51 153 t a b; > #X obj 51 293 pipe f 0; > #X obj 134 263 f; > #X obj 109 263 +; > #X obj 51 128 l; > #X obj 102 127 length; > #X obj 126 319 select; > #X obj 144 127 - 1; > #X obj 30 385 outlet; > #X obj 128 382 outlet; > #X text -2 365 index; > #X obj 51 62 inlet; > #X obj 184 56 inlet; > #X text 232 58 loop; > #X obj 126 343 spigot; > #X text 89 61 list in secs; > #X obj 178 102 tgl 15 0 empty empty empty 20 7 0 10 -260097 -1 -1 0 > 1; > #X text 174 382 bangs on done; > #X obj 51 207 * 1000; > #X connect 0 0 23 0; > #X connect 1 0 2 0; > #X connect 1 1 8 0; > #X connect 2 0 3 0; > #X connect 2 0 6 0; > #X connect 3 0 2 1; > #X connect 4 0 2 1; > #X connect 4 0 8 1; > #X connect 5 0 0 0; > #X connect 5 1 4 0; > #X connect 6 0 11 0; > #X connect 6 0 13 0; > #X connect 7 0 8 1; > #X connect 8 0 7 0; > #X connect 8 0 6 1; > #X connect 9 0 5 0; > #X connect 9 0 10 0; > #X connect 10 0 12 0; > #X connect 11 0 19 0; > #X connect 12 0 11 1; > #X connect 16 0 9 0; > #X connect 17 0 21 0; > #X connect 19 0 14 0; > #X connect 19 0 9 0; > #X connect 21 0 19 1; > #X connect 23 0 1 0; > #X coords 0 -1 1 1 95 19 1 100 100; ------------------- http://mccormick.cx _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
