hi
David F. Place wrote:
Hi and thanks for your help so far.
In my previous message my abstraction was too simple. I can't use [Until] after all.
the problem is the same and it can be resolved with [until]. see attached patch.
You can see by the attached patch the behavior that I want using [textfile]. I want to output records until I find a wait, wait a bit, then continue. This works fine with textfile. However, I also want to be able to seek a certain record without causing any output. That is why I thought I could use [msgfile]'s goto message. Unfortunately, [msgfile] doesn't work at all for the basic process.
a fixed version of msgfile is now available in CVS.
even though the fixed msgfile now allows you to do your stuff in a recursive way, i strongly suggest using an [until] based approach.
mfg.asdr IOhannes
#N canvas 243 71 993 768 10; #X obj 15 13 zexy; #X msg 242 132 print; #X msg 328 75 rewind; #X obj 407 76 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 279 192 textfile; #X msg 110 76 clear , read test4.txt; #X msg 130 101 clear , read josquin.seq; #X text 113 57 1.); #X text 328 54 2.); #X text 405 52 3.); #X obj 279 298 route do control wait; #X obj 279 236 t a a; #X obj 309 264 print record; #X obj 373 378 delay 100; #X obj 373 347 * 100; #X obj 330 217 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 100 21 [textfile] succeeds.; #X msg 255 588 print; #X msg 341 531 rewind; #X obj 420 532 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 123 532 clear , read test4.txt; #X msg 143 557 clear , read josquin.seq; #X text 126 513 1.); #X text 341 510 2.); #X text 418 508 3.); #X obj 293 755 route do control wait; #X obj 293 861 bang; #X obj 293 693 t a a; #X obj 323 721 print record; #X obj 387 815 delay 100; #X obj 387 784 * 100; #X obj 383 677 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 140 611 r continueM; #X obj 293 883 s continueM; #X obj 293 648 msgfile; #X obj 293 671 list trim; #X floatatom 438 769 5 0 0 0 - - -; #X text 100 466 [msgfile] has been fixed in CVS so that this works now:; #X obj 318 156 until; #X obj 373 324 t f b; #X floatatom 429 311 5 0 0 0 - - -; #X connect 1 0 4 0; #X connect 2 0 4 0; #X connect 3 0 38 0; #X connect 4 0 11 0; #X connect 4 1 15 0; #X connect 4 1 38 1; #X connect 5 0 4 0; #X connect 6 0 4 0; #X connect 10 2 39 0; #X connect 11 0 10 0; #X connect 11 1 12 0; #X connect 13 0 38 0; #X connect 14 0 13 0; #X connect 17 0 34 0; #X connect 18 0 34 0; #X connect 19 0 34 0; #X connect 20 0 34 0; #X connect 21 0 34 0; #X connect 25 0 26 0; #X connect 25 1 26 0; #X connect 25 2 30 0; #X connect 26 0 33 0; #X connect 27 0 25 0; #X connect 27 1 28 0; #X connect 29 0 26 0; #X connect 30 0 29 0; #X connect 32 0 34 0; #X connect 34 0 35 0; #X connect 34 1 31 0; #X connect 35 0 27 0; #X connect 36 0 30 1; #X connect 38 0 4 0; #X connect 39 0 14 0; #X connect 39 1 38 1; #X connect 40 0 14 1;