#N canvas 92 82 1095 495 10;
#X obj 413 177 timer;
#X obj 395 205 -;
#X obj 395 153 t f b;
#X obj 395 227 max;
#X obj 96 259 vline~;
#X obj 97 284 s_playolap \$1;
#X msg 320 403 0 0;
#X obj 574 324 loadbang;
#X msg 574 350 22050;
#X obj 574 379 s \$0-sr;
#N canvas 0 0 648 332 phase 0;
#X obj 73 112 u_listmap;
#X msg 73 86 \$1 1000;
#X obj 148 111 * 1e+07;
#X obj 48 137 list;
#X obj 48 30 inlet;
#X obj 48 167 outlet;
#X text 175 30 make a large phase-incrementor at samplerate;
#X obj 73 55 r \$0-sr;
#X connect 0 0 3 1;
#X connect 0 1 2 0;
#X connect 1 0 0 0;
#X connect 2 0 0 1;
#X connect 3 0 5 0;
#X connect 4 0 3 0;
#X connect 7 0 1 0;
#X restore 302 375 pd phase;
#X obj 827 50 inlet;
#X obj 827 76 u_dispatch \$0 sr;
#X obj 873 50 u_loader s_loopsmooth-\$1 \$0;
#X obj 651 325 r \$0-sr;
#X msg 651 349 sr \$1;
#X obj 185 260 r \$0-playolap;
#X obj 651 371 s \$0-playolap;
#X obj 327 112 max 10;
#X obj 302 194 f 10;
#X obj 827 97 u_dispatch \$0 dur;
#X obj 327 75 r \$0-dur;
#X obj 27 353 outlet~;
#X obj 18 24 inlet;
#N canvas 0 0 463 289 startstop 0;
#X obj 39 59 list trim;
#X obj 39 83 route start stop bang;
#X obj 39 144 b;
#X obj 221 148 b;
#X obj 191 99 route 1 0;
#X obj 39 30 inlet;
#X obj 39 170 outlet;
#X obj 221 174 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 1 2 2 0;
#X connect 1 3 4 0;
#X connect 2 0 6 0;
#X connect 3 0 7 0;
#X connect 4 0 2 0;
#X connect 4 1 3 0;
#X connect 5 0 0 0;
#X restore 18 50 pd startstop;
#X obj 827 119 u_dispatch \$0 loopstart;
#X obj 827 147 s \$0-playolap;
#N canvas 0 0 543 347 loopstart 0;
#X obj 74 96 unpack 0 0;
#X obj 74 218 +;
#X obj 74 240 pack 0 0;
#X obj 74 56 inlet;
#X obj 74 267 outlet;
#X text 125 32 loop start;
#X obj 92 135 r \$0-loopstart;
#X obj 152 156 r \$0-sr;
#X obj 152 180 * 0.001;
#X obj 92 178 * 22.05;
#X connect 0 0 1 0;
#X connect 0 1 2 1;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
#X connect 6 0 9 0;
#X connect 7 0 8 0;
#X connect 8 0 9 1;
#X connect 9 0 1 1;
#X restore 302 439 pd loopstart;
#X obj 355 293 outlet;
#X obj 28 329 *~;
#X obj 27 287 lop~ 5;
#X msg 27 232 1;
#X msg 60 232 0;
#X obj 104 230 r \$0-vline;
#X obj 302 465 s \$0-vline;
#X obj 18 74 s \$0-start;
#X obj 27 152 r \$0-start;
#X obj 60 180 r \$0-stop;
#X obj 99 74 s \$0-stop;
#X msg 96 206 stop;
#X obj 302 313 t b b b b b;
#X text 465 186 The time difference of elapsed time since loop start
and the new duration is \, when we have to restart the loop \, so we
reschedule the delay here. If difference is smaller than 0 \, it means
\, we've already read past the new loop end \, so restart the loop
immediatly (with delay=0);
#N canvas 0 0 650 457 delay 0;
#X obj 233 55 inlet;
#X obj 233 260 outlet;
#X obj 233 201 delay;
#X msg 142 136 stop;
#X obj 62 58 r \$0-start;
#X obj 142 57 r \$0-stop;
#X obj 233 164 spigot;
#X msg 272 135 1;
#X msg 303 136 0;
#X obj 62 83 t b b;
#X obj 142 87 t b b;
#X obj 308 261 outlet;
#X text 350 138 block delays when stopped;
#X text 362 258 signal end of loop;
#X connect 0 0 6 0;
#X connect 2 0 1 0;
#X connect 2 0 11 0;
#X connect 3 0 2 0;
#X connect 4 0 9 0;
#X connect 5 0 10 0;
#X connect 6 0 2 0;
#X connect 7 0 6 1;
#X connect 8 0 6 1;
#X connect 9 0 1 0;
#X connect 9 1 7 0;
#X connect 10 0 3 0;
#X connect 10 1 8 0;
#X restore 302 269 pd delay;
#N canvas 228 198 627 317 LICENSE-BSD 0;
#X text 121 56 This software is copyrighted by Miller Puckette \, Reality
Jockey Ltd. and others. The terms (the "Standard Improved BSD License")
apply to all files associated with the software unless explicitly disclaimed
in individual files.;
#X text 123 148 See the file LICENSE.txt for the full license text.
;
#X restore 674 36 pd LICENSE-BSD;
#X obj 775 335 r RJLIB;
#X obj 775 356 route sf-samplerate;
#X obj 775 378 s \$0-sr;
#X text 771 314 Allow global setting of soundfile samplerate;
#X connect 0 0 1 1;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 2 1 0 1;
#X connect 3 0 42 0;
#X connect 4 0 5 0;
#X connect 5 0 29 1;
#X connect 6 0 27 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 10 0 27 0;
#X connect 11 0 12 0;
#X connect 12 0 20 0;
#X connect 14 0 15 0;
#X connect 15 0 17 0;
#X connect 16 0 5 1;
#X connect 18 0 2 0;
#X connect 18 0 19 1;
#X connect 19 0 42 0;
#X connect 20 0 25 0;
#X connect 21 0 18 0;
#X connect 23 0 24 0;
#X connect 24 0 35 0;
#X connect 24 1 38 0;
#X connect 25 0 26 0;
#X connect 27 0 34 0;
#X connect 29 0 22 0;
#X connect 30 0 29 0;
#X connect 31 0 30 0;
#X connect 32 0 30 0;
#X connect 33 0 4 0;
#X connect 36 0 31 0;
#X connect 37 0 32 0;
#X connect 37 0 39 0;
#X connect 39 0 4 0;
#X connect 40 0 10 0;
#X connect 40 1 6 0;
#X connect 40 3 19 0;
#X connect 40 4 0 0;
#X connect 42 0 40 0;
#X connect 42 1 28 0;
#X connect 44 0 45 0;
#X connect 45 0 46 0;
