#N canvas 159 79 594 533 10; #X text 30 7 loops a sound file between a startframe and endframe; #X text 133 227 start; #X text 134 239 frame; #X text 216 239 frame; #X text 215 229 end; #X text 29 278 audio out; #X obj 90 69 frameclock 400; #X obj 56 455 output~; #X text 31 187 This will loop the voice.wav sound file starting at frame 50 and ending at frame 200:; #N canvas 0 22 450 300 (subpatch) 0; #X array \$0-array 126079 float 2; #X coords 0 1 126079 -1 100 70 1; #X restore 420 19 graph; #X obj 402 121 symbol \$0-array; #X obj 402 165 soundfiler; #X obj 402 100 loadbang; #X msg 460 101 bang; #X text 238 255 args: array startframe# endframe#; #X text 49 236 array; #X obj 259 330 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 0 1; #X floatatom 256 349 5 0 0 0 - - -; #X obj 256 309 line; #X text 149 276 right outlet outputs a message to send to a line which will generate a line with 0 at the start and 1 at the end; #X obj 85 431 *~; #X obj 100 411 line~; #X obj 85 355 osc~ 333; #X msg 177 382 0; #X obj 85 376 *~ 0.3; #X obj 177 361 select 1; #X msg 90 42 33; #X msg 123 42 53; #X msg 402 142 read examples/sdf.wav \$1; #X msg 152 42 111; #X obj 62 256 tablooper~ \$0-array 40 186; #X text 180 41 <-- try jumping to a frame; #X connect 10 0 28 0; #X connect 12 0 10 0; #X connect 13 0 10 0; #X connect 16 0 17 0; #X connect 18 0 16 0; #X connect 18 0 25 0; #X connect 20 0 7 1; #X connect 21 0 20 1; #X connect 22 0 24 0; #X connect 23 0 21 0; #X connect 24 0 20 0; #X connect 25 0 23 0; #X connect 26 0 6 0; #X connect 27 0 6 0; #X connect 28 0 11 0; #X connect 29 0 6 0; #X connect 30 0 7 0; #X connect 30 1 18 0; #X connect 30 1 21 0;