#N canvas 344 96 716 564 10;
#N canvas 0 0 450 300 (subpatch) 0;
#X array tabread4-out 44100 float 0;
#X coords 0 1.02 44100 -1.02 200 130 1;
#X restore 362 220 graph;
#N canvas 0 0 450 300 (subpatch) 0;
#X array table17 44103 float 0;
#X coords 0 1.02 44103 -1.02 200 130 1;
#X restore 361 44 graph;
#X obj 412 469 loadbang;
#X obj 53 255 tabwrite~ tabread4-out;
#X obj 22 281 hip~ 5;
#X floatatom 22 49 0 0 0 0 - - -;
#X text 51 50 <-- frequency (Hz.);
#X floatatom 43 98 0 0 0 0 - - -;
#X obj 43 120 * 441;
#X obj 22 147 *~ 0;
#X obj 22 172 +~ 1;
#X obj 22 71 phasor~ 0;
#X msg 53 228 bang;
#X text 73 98 <-- chunk size (100ths of a second);
#X obj 411 385 adc~ 1;
#X msg 423 408 bang;
#X text 463 409 <-- click here to record your own sample;
#X text 492 469 v-- re-read the original sample;
#X text 19 465 In this patch you will frequently hear discontinuities
at the looping point. If you're working in a studio \, you can sometimes
find "good" loop points for samples. Another approach \, better for
live situations \, is shown in the next patch.;
#X text 58 147 <-- readjust phase for range 0 - (chunk size);
#X text 57 172 <-- add one to avoid beginning of table;
#X obj 412 513 soundfiler;
#X text 359 183 ---- 44103 samples ----;
#X text 373 356 ---- 1 second ------;
#X obj 22 308 output~;
#X obj 22 199 tabread4~ table17;
#X obj 412 434 tabwrite~ table17;
#X msg 412 491 read ../sound/voice.wav table17;
#X text 19 364 This is a looping sampler in which you specify the number
of loops per second (the frequency) and the size of the chunk to loop.
If the frequency is less than about 20 \, you will hear repetition
and the chunk size will sound like transposition. For frequencies above
50 or so \, you hear a tone whose timbre is controlled by the chunk
size (best kept below 10 or so.) Remember you can use the "shift" key
on number boxes to make fine adjustments.;
#X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header looping_sampler
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X text 139 199 read from the table;
#X text 88 229 <-- click to display output;
#X obj 1 542 cnv 15 445 20 empty \$0-pddp.cnv.footer empty 20 12 0
14 -233017 -33289 0;
#N canvas 44 246 494 284 META 0;
#X text 12 125 WEBSITE http://crca.ucsd.edu/~msp/;
#X text 12 105 AUTHOR Miller Puckette;
#X text 12 85 LIBRARY PDDP;
#X text 12 5 GENRE tutorial;
#X text 12 45 LICENSE SIBSD;
#X text 12 145 HELP_PATCH_AUTHORS Updated for release 0.37. Jonathan
Wilkes revised the patch to conform to the PDDP template for Pd version
0.42.;
#X text 12 25 KEYWORDS signal;
#X text 12 65 DESCRIPTION looping sampler;
#X restore 392 544 pd META;
#N canvas 13 202 428 190 References 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -261139 -33289 0;
#X text 7 2 looping sampler- Related Help Documents;
#X text 19 37 links to looping objects:;
#X restore 103 544 pd References;
#X obj 6 544 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X connect 2 0 27 0;
#X connect 4 0 24 0;
#X connect 4 0 24 1;
#X connect 5 0 11 0;
#X connect 7 0 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 25 0;
#X connect 11 0 9 0;
#X connect 12 0 3 0;
#X connect 14 0 26 0;
#X connect 15 0 26 0;
#X connect 25 0 4 0;
#X connect 25 0 3 0;
#X connect 27 0 21 0;
