Hi list, I am using [text sequence] with wait times to generate timed events. The contents of my list buffer look something like
0 event1; 1000 event2; 1000 event3; When I insert a line into the buffer using [text insert 2] 1400 msecs after starting the sequencer, the text buffer looks like 0 event1; 1000 event2; 500 event2.5; 1000 event3; event2.5 will be output correctly, but event3 still fires 1000msecs after event2. I include a minimum working example. Since I would like to use this as a looping text sequencer, adding and deleting events while it is running, I am wondering what exactly happens behind the scenes when adding or deleting lines, and how I can achieve predictable behavior. At which times is [text sequence] reading in the buffer and (re)scheduling events? Thanks for any help, Peter
#N canvas 470 132 825 392 12; #X obj 54 19 text define -k aloha; #A set event1 \; 1000 event2 \; 500 event2.5 \; 1000 event3 \;; #X obj 60 240 print; #X obj 60 177 text sequence aloha -w 1; #X msg 60 145 line 0 \, auto; #X msg 351 149 500 event2.5 \;; #X obj 352 177 text insert aloha 2; #X obj 358 327 text delete aloha; #X msg 358 298 2; #X obj 351 62 bng 20 250 50 0 empty empty 2.\ adding\ an\ event\ after\ 1.4s 0 -10 0 12 #fcfcfc #000000 #000000; #X obj 60 69 bng 20 250 50 0 empty empty 1.sequence\ with\ three\ events 0 -10 0 12 #fcfcfc #000000 #000000; #X text 357 277 delete event2.5 again:; #X text 320 202 event2.5 is output \, but event3 is not rescheduled?; #X obj 351 111 delay 1400; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 7 0 6 0; #X connect 8 0 3 0; #X connect 8 0 12 0; #X connect 9 0 3 0; #X connect 12 0 4 0;
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list