#N canvas 174 275 1050 615 10;
#X obj 168 565 outlet~;
#X obj 208 518 outlet~;
#X obj 167 483 s_playtable2;
#X floatatom 728 435 8 0 0 3 dur_in_smps - -;
#X floatatom 654 435 8 0 0 3 dur_in_ms - -;
#X symbolatom 579 435 10 0 0 3 table_name - -;
#X obj 579 385 unpack s f f f;
#X floatatom 812 435 6 0 0 3 samplerate - -;
#X obj 547 48 inlet;
#X obj 547 80 u_dispatch \$0 open;
#X obj 547 104 u_dispatch \$0 loop;
#X obj 547 129 u_dispatch \$0 play;
#X obj 547 153 u_dispatch \$0 stop;
#X obj 579 298 r \$0-open;
#X text 327 382 sample;
#X text 296 356 gain speed;
#X obj 167 330 f 0;
#X text 204 329 start time;
#X obj 371 212 metro 10000;
#X obj 167 239 spigot;
#X obj 206 217 r \$0-sample-loaded;
#X obj 568 511 s \$0-sample-loaded;
#X msg 568 490 1;
#X obj 662 484 s \$0-duration;
#X obj 445 190 r \$0-duration;
#X obj 371 138 r \$0-loop;
#X obj 371 189 spigot;
#X obj 410 167 r \$0-sample-loaded;
#X obj 167 182 r \$0-play;
#X obj 312 475 r \$0-stop;
#X msg 312 499 stop;
#X msg 579 326 open;
#X obj 167 355 list prepend 1 1;
#X obj 167 382 list prepend \$0-sample;
#X msg 185 303 0;
#X obj 719 119 r \$0-loop;
#X obj 719 144 select 0;
#X obj 719 173 s \$0-stop;
#X obj 547 175 u_dispatch \$0 playdiv;
#X obj 185 279 r \$0-stop;
#X obj 491 478 outlet;
#N canvas 0 0 907 511 calcdivs 0;
#X obj 111 45 r \$0-playdiv;
#X obj 136 195 r \$0-duration;
#X obj 111 218 swap;
#X obj 111 246 /;
#X obj 111 291 *;
#X obj 111 355 outlet;
#X obj 111 100 spigot;
#X obj 150 78 r \$0-sample-loaded;
#X obj 111 168 unpack 0 0 0;
#X obj 174 296 *;
#X obj 111 268 t a a;
#X obj 111 320 pack 0 0;
#X obj 111 135 t a a;
#X obj 289 190 list length;
#X obj 289 218 < 3;
#X text 285 249 if list doesn't have duration (i.e. is < 3) \, then
play only one division.;
#X connect 0 0 6 0;
#X connect 1 0 2 1;
#X connect 2 0 3 0;
#X connect 2 1 3 1;
#X connect 3 0 10 0;
#X connect 4 0 11 0;
#X connect 6 0 12 0;
#X connect 7 0 6 1;
#X connect 8 0 2 0;
#X connect 8 1 4 1;
#X connect 8 2 9 1;
#X connect 9 0 11 1;
#X connect 10 0 4 0;
#X connect 10 1 9 0;
#X connect 11 0 5 0;
#X connect 12 0 8 0;
#X connect 12 1 13 0;
#X connect 13 0 14 0;
#X connect 14 0 9 1;
#X restore 268 278 pd calcdivs;
#X obj 421 478 outlet;
#X obj 167 417 t a b;
#X msg 358 502 0;
#X msg 299 162 0;
#X obj 74 229 s \$0-metro;
#X msg 74 207 0;
#X obj 357 111 r \$0-metro;
#X obj 358 524 s \$0-metro;
#X msg 301 303 0;
#X obj 301 325 s \$0-metro;
#X obj 547 199 u_dispatch \$0 sr;
#X obj 547 222 u_dispatch \$0 fade;
#X obj 652 296 r \$0-sr;
#X obj 248 423 r \$0-sr;
#X msg 248 445 sr \$1;
#X obj 314 420 r \$0-fade;
#X msg 652 318 sr \$1 \, info;
#X obj 579 356 u_samplebank2 \$0-sample \$2;
#X obj 609 49 u_loader s_looper-\$1 \$0;
#X obj 547 243 u_dispatch \$0 info;
#X obj 752 297 r \$0-info;
#X msg 752 318 info;
#N canvas 172 83 586 377 LICENSE-GPL 0;
#X text 57 88 This program is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation \, either version 3 of
the License \, or (at your option) any later version.;
#X text 58 168 This program is distributed in the hope that it will
be useful \, but WITHOUT ANY WARRANTY \; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.;
#X text 57 261 You should have received a copy of the GNU General Public
License along with this program. If not \, see <http://www.gnu.org/licenses/>.
;
#X text 61 54 Copyright (C) 2009 \, Reality Jockey Ltd.;
#X text 60 325 See the file LICENSE.txt for the full license text.
;
#X restore 812 29 pd LICENSE-GPL;
#X msg 314 443 fade 0 \$1;
#X obj 713 222 r RJLIB;
#X obj 713 243 route sf-samplerate;
#X obj 713 265 s \$0-sr;
#X text 709 201 Allow global setting of soundfile samplerate;
#X connect 2 0 0 0;
#X connect 2 1 1 0;
#X connect 6 0 5 0;
#X connect 6 0 22 0;
#X connect 6 1 4 0;
#X connect 6 1 23 0;
#X connect 6 2 3 0;
#X connect 6 3 7 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 38 0;
#X connect 13 0 31 0;
#X connect 16 0 32 0;
#X connect 18 0 16 0;
#X connect 19 0 16 0;
#X connect 20 0 19 1;
#X connect 22 0 21 0;
#X connect 24 0 18 1;
#X connect 25 0 26 0;
#X connect 26 0 18 0;
#X connect 27 0 26 1;
#X connect 28 0 19 0;
#X connect 28 0 47 0;
#X connect 29 0 30 0;
#X connect 29 0 44 0;
#X connect 30 0 2 1;
#X connect 31 0 59 0;
#X connect 32 0 33 0;
#X connect 33 0 43 0;
#X connect 34 0 16 1;
#X connect 35 0 36 0;
#X connect 36 0 37 0;
#X connect 38 0 52 0;
#X connect 39 0 34 0;
#X connect 41 0 32 0;
#X connect 41 0 50 0;
#X connect 43 0 2 0;
#X connect 43 1 42 0;
#X connect 44 0 49 0;
#X connect 47 0 46 0;
#X connect 48 0 26 0;
#X connect 50 0 51 0;
#X connect 52 0 53 0;
#X connect 53 0 61 0;
#X connect 54 0 58 0;
#X connect 55 0 56 0;
#X connect 56 0 2 1;
#X connect 57 0 65 0;
#X connect 58 0 59 0;
#X connect 59 0 6 0;
#X connect 59 0 40 0;
#X connect 62 0 63 0;
#X connect 63 0 59 0;
#X connect 65 0 2 1;
#X connect 66 0 67 0;
#X connect 67 0 68 0;
