[PD] sample loop

CK x at meta.lo-res.org
Fri Nov 21 09:57:44 CET 2003


I read:
> i'm trying to layer some looped samples. the samples have been trimmed to 
> loop smoothly so i was hoping there might be a simple way to do it like 
> readsf~ but looking at the documentation it seems not.

[tabplay~] 

or
 
[phasor~]
 |
[*~ lengthofsample]
 |
[tabread~]

(see attached patch)

> before i lose the weekend to figuring out arrays and tables i thought i'd 
> ask if anyone knew of an easier way to do this. i just need simple stop and 
> start of some straight sample loops (only 3 in total) - no need to keep time 
> or anything.

you probably don't know it yet but you really _want_ to figure out tables
(which is the same as arrays, so you only need to figure out one ;)

HTH

x

-- 
chris at lo-res.org	Postmodernism is german romanticism with better
http://pilot.fm/	special effects. (Jeff Keuss / via ctheory.com)
-------------- next part --------------
#N canvas 382 224 580 425 10;
#X obj 34 327 table smp1;
#X obj 34 347 table smp2;
#X obj 34 367 table smp3;
#X obj 279 111 phasor~;
#X obj 28 226 soundfiler;
#X obj 28 43 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 28 140 read -resize \$1 smp1;
#X obj 57 43 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 87 43 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 57 166 read -resize \$1 smp2;
#X msg 87 192 read -resize \$1 smp3;
#X obj 28 248 s len;
#X obj 280 161 *~;
#X obj 296 137 r len;
#X obj 316 207 *~ 0.2;
#X obj 279 277 tabread~ smp1;
#X obj 316 231 tabread~ smp2;
#X obj 315 184 tabread~ smp1;
#X obj 316 252 *~ 0.2;
#X obj 280 299 *~ 0.2;
#X obj 279 345 *~ 0.6;
#X obj 278 41 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 278 86 line~;
#X msg 278 63 \$1 5;
#X obj 278 374 dac~;
#X obj 324 39 hsl 100 15 0.1 1.5 1 0 vol empty empty -2 -6 128 8 -262144
-1 -1 9900 1;
#X obj 358 328 - 0.1;
#X obj 358 306 r vol;
#X text 26 22 1;
#X text 59 21 2;
#X text 86 21 3;
#X text 251 24 4 start;
#X text 328 22 adjust volume;
#X obj 28 64 openpanel;
#X obj 57 88 openpanel;
#X obj 87 112 openpanel;
#X connect 3 0 12 0;
#X connect 4 0 11 0;
#X connect 5 0 33 0;
#X connect 6 0 4 0;
#X connect 7 0 34 0;
#X connect 8 0 35 0;
#X connect 9 0 4 0;
#X connect 10 0 4 0;
#X connect 12 0 15 0;
#X connect 12 0 16 0;
#X connect 12 0 17 0;
#X connect 13 0 12 1;
#X connect 14 0 20 0;
#X connect 15 0 19 0;
#X connect 16 0 18 0;
#X connect 17 0 14 0;
#X connect 18 0 20 0;
#X connect 19 0 20 0;
#X connect 20 0 24 0;
#X connect 21 0 23 0;
#X connect 22 0 3 0;
#X connect 23 0 22 0;
#X connect 26 0 20 1;
#X connect 27 0 26 0;
#X connect 33 0 6 0;
#X connect 34 0 9 0;
#X connect 35 0 10 0;


More information about the Pd-list mailing list