#N canvas 0 31 582 490 10; #X obj 0 0 cnv 8 100 60 empty empty sfread2~ 10 20 1 18 -262144 -1109 0; #X text 2 459 (c) Moonix: Antoine Rousseau 2003; #X text 66 390 Change "mlockall(MCL_FUTURE)" with "mlockall(MCL_CURRENT) ; #X obj 155 262 sfread2~ 2; #X msg 155 202 open \$1; #X obj 19 151 bng 15 250 50 0 empty empty play 20 8 1 8 -24198 -1 -1 ; #X msg 278 225 loop \$1; #X obj 278 207 tgl 15 1 empty empty loop 20 8 0 8 -241291 -1 -1 1 1 ; #X obj 57 103 tgl 15 1 empty empty interpolation 20 8 1 8 -257472 -1 -1 1 1; #X msg 57 121 interp \$1; #X obj 458 181 vsl 15 128 -8 8 0 0 empty empty speed 0 -8 1 8 -260818 -1 -1 7144 1; #X text 135 12 soundfile reader at variable speed (possibly negative) \, whith 4-point interpolation and loop.; #X obj 154 296 dac~; #X obj 155 92 openpanel; #X obj 155 72 bng 15 250 50 0 empty empty open 0 -6 1 8 -166441 -1 -1; #X obj 18 179 bng 15 250 50 0 empty empty stop 20 8 1 8 -1 -1 -1; #X msg 18 196 0; #X obj 148 339 sfread~; #X text 43 341 read manual of; #X text 202 339 for more details...; #X text 235 159 resets sound to position; #X text 234 148 start position in samples; #X msg 238 174 index 20000; #X obj 497 177 loadbang; #X msg 497 196 1; #X msg 261 99 symbol /usr/local/lib/pd/doc/sound/voice.wav; #X msg 261 78 symbol ../../doc/sound/voice.wav; #X text 66 414 If not \, the whole file will be loaded in memory when opened (use of C function mmap()).; #X text 66 401 in s_linux.c... SORRY \, I mean in s_inter.c (since 0.37...); #X text 59 378 CAUTION: you should hack pd sources to have d-t-d working. ; #N canvas 592 238 494 344 META 0; #X text 12 25 LICENSE GPL v2; #X text 12 165 AUTHOR Antoine Rousseau; #X text 12 185 HELP_PATCH_AUTHORS Antoine Rousseau. "pd meta" information added by Jonathan Wilkes for Pd version 0.42.; #X text 12 5 KEYWORDS signal soundfile; #X text 12 45 DESCRIPTION soundfile reader at variable speed (possibly negative) \, whith 4-point interpolation and loop; #X text 12 85 INLET_0 float bang interp open index loop; #X text 12 105 INLET_1 float; #X text 12 145; #X text 12 125 OUTLET_N signal; #X text 12 145 OUTLET_R float; #X restore 526 459 pd META; #X obj 286 303 sfread2~ 4; #X connect 3 0 12 0; #X connect 3 1 12 1; #X connect 4 0 3 0; #X connect 5 0 3 0; #X connect 6 0 3 0; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 9 0 3 0; #X connect 10 0 3 1; #X connect 13 0 4 0; #X connect 14 0 13 0; #X connect 15 0 16 0; #X connect 16 0 3 0; #X connect 22 0 3 0; #X connect 23 0 24 0; #X connect 24 0 10 0; #X connect 25 0 4 0; #X connect 26 0 4 0;