sfplay~ preload problem

Apr 26, 2007 at 10:10am

sfplay~ preload problem

For the umpteenth time in this forum, an issue with sfplay~ (sorry for that!).

I would like to preload in a sfplay~ any audio file contained in a folder, and set the bidirectional flag to 1.
Hovewer, from the third cue, a series of errors occur:

print: preload 3 OSX:/Users/bruno/Desktop/Spawc/Suoni/Loops/l2wav.wav 2477.000000 4954.000000 1 1.000000
sfplay~: truncating cue 3

ecc…

I think I’m not understanding the sense of “start” and “end” position of a cue.
If I have to preload two files of 500ms, should I preload the first one from 0 to 500 and the second one from 501 to 1001? Isn’t it?

Look at this patch that explain the problem, just clicking on the bang message and reading the messages on the max window:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 773 245 35 196617 Reset;
#P comment 367 711 166 196617 What’s wrong with this messages?;
#B frgb 214 15 0;
#P comment 350 698 229 196617 2 – Read on the max window: all cues truncated;
#B frgb 214 15 0;
#P newex 495 452 36 196617 zl reg;
#P number 255 307 62 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 449 222 15 0;
#P newex 313 696 32 196617 print;
#P message 759 244 14 196617 0;
#P number 290 562 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 269 608 31 196617 int 0;
#P message 449 244 14 196617 1;
#P button 473 309 15 0;
#P message 473 329 14 196617 0;
#P newex 694 354 29 196617 gate;
#N counter 0 0 1;
#X flags 0 0;
#P newobj 255 283 149 196617 counter 0 0 1;
#P newex 386 430 55 196617 t b b b;
#P newex 386 387 50 196617 del 1000;
#P flonum 515 621 68 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 638 623 68 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 638 585 27 196617 +;
#P newex 564 523 101 196617 t b i;
#P newex 515 556 43 196617 float 0.;
#P newex 386 363 145 196617 t b s;
#P newex 521 404 68 196617 prepend open;
#P window setfont “Sans Serif” 12.;
#P comment 405 637 42 196620 name;
#B color 7;
#P comment 281 637 31 196620 cue;
#B color 7;
#P window setfont “Sans Serif” 9.;
#P newex 269 653 380 196617 sprintf preload %i %s %f %f 1 1.;
#P flonum 564 495 104 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 495 472 128 196617 sfinfo~;
#P window setfont “Sans Serif” 12.;
#P comment 648 638 31 196620 end;
#B color 7;
#P comment 522 637 42 196620 start;
#B color 7;
#P window setfont “Sans Serif” 9.;
#P flonum 790 659 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 790 683 50 196617 speed $1;
#P newex 102 717 27 196617 + 2;
#P comment 22 681 134 196617 3-Read cues (doesn’t work);
#P user ezdac~ 269 779 313 812 0;
#P number 102 697 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N sfplay~ 2 100000 0 ;
#P newobj 269 745 92 196617 sfplay~ 2 100000;
#P button 109 22 15 0;
#P comment 16 24 79 196617 1-Load a folder;
#P window setfont Arial 9.;
#P newex 215 222 50 131137545 pipe 100;
#P newex 202 178 168 131137545 loadmess types AIFF WAVE Sd2f;
#P newex 109 97 105 131137545 relativepath;
#P newex 109 128 105 131137545 conformpath;
#P newex 109 73 105 131137545 opendialog fold;
#P newex 109 47 152 131137545 sel bang;
#P newex 215 243 50 131137545 t b i;
#P newex 255 353 50 131137545 + 2;
#P newex 109 156 80 131137545 prepend prefix;
#P user ubumenu 255 335 156 131137545 0 1 1 0;
#X add l1.wav;
#X add l2wav.wav;
#X add l3.wav;
#X add l4.wav;
#X prefix_set 0 1 OSX:/Users/bruno/Desktop/Spawc/Suoni/Loops/ 0;
#X pattrmode 1;
#P newex 135 198 90 131137545 folder;
#P window setfont “Sans Serif” 9.;
#P comment 437 388 133 196617 Wait that sfinfo~ reads file;
#B frgb 24 255 49;
#P fasten 2 1 29 0 333 361 391 361;
#P fasten 2 1 25 1 333 491 397 491;
#P connect 20 0 19 0;
#P connect 46 0 41 0;
#P fasten 46 0 44 0 454 240 764 240;
#P fasten 36 0 38 1 391 455 371 455 371 425 734 425 734 350 718 350;
#P lcolor 6;
#P fasten 39 0 38 0 478 349 699 349;
#P fasten 41 0 38 0 454 265 699 265;
#P fasten 31 1 32 1 660 563 660 563;
#P connect 33 0 25 3;
#P fasten 32 0 30 1 643 613 611 613 611 548 552 548 553 549;
#P lcolor 6;
#P connect 32 0 33 0;
#P connect 30 0 34 0;
#P fasten 30 0 32 0 520 577 643 577;
#P connect 24 0 31 0;
#P connect 23 3 24 0;
#P fasten 44 0 30 1 764 552 553 552;
#P lcolor 7;
#P connect 28 0 48 1;
#P connect 29 1 28 0;
#P connect 34 0 25 2;
#P fasten 31 0 30 0 569 545 520 545;
#P connect 48 0 23 0;
#P fasten 36 2 48 0 435 449 500 449;
#P connect 40 0 39 0;
#P fasten 37 2 40 0 352 304 478 304;
#P connect 1 1 11 0;
#P fasten 1 1 46 0 220 218 454 218;
#P fasten 5 1 37 4 260 262 396 262;
#P connect 35 0 36 0;
#P connect 29 0 35 0;
#P connect 25 0 14 0;
#P fasten 25 0 45 0 274 683 318 683;
#P connect 14 0 16 0;
#P connect 14 0 16 1;
#P connect 43 0 42 1;
#P fasten 4 0 43 0 260 456 295 456;
#P fasten 18 0 14 0 107 741 274 741;
#P fasten 19 0 14 0 795 732 274 732;
#P connect 42 0 25 0;
#P fasten 36 1 42 0 413 600 274 600;
#P lcolor 6;
#P connect 2 0 4 0;
#P lcolor 16;
#P fasten 3 0 2 0 114 332 260 332;
#P lcolor 16;
#P connect 47 0 2 0;
#P connect 37 0 47 0;
#P fasten 5 0 37 0 220 267 260 267;
#P fasten 38 0 37 0 699 377 691 377 691 278 260 278;
#P lcolor 6;
#P connect 11 0 5 0;
#P fasten 10 0 1 0 207 197 140 197;
#P fasten 6 1 3 0 256 154 114 154;
#P fasten 6 1 1 0 256 173 140 173;
#P lcolor 16;
#P fasten 8 0 1 0 114 151 194 151 194 177 140 177;
#P connect 8 0 3 0;
#P lcolor 16;
#P connect 9 0 8 0;
#P connect 7 0 9 0;
#P connect 6 0 7 0;
#P lcolor 16;
#P connect 13 0 6 0;
#P connect 15 0 18 0;
#P window clipboard copycount 52;

#31592
Apr 26, 2007 at 11:21am

Ooops, solved!
I didn’t understand the mechanism of start and end… now everything it’s ok, very sorry for spamming!

Cheers,

#102906

You must be logged in to reply to this topic.