aboutsummaryrefslogtreecommitdiff
path: root/help/sfread2~-help.pd
blob: ad8ae16f6680c3c3f57589c617eab9d65fd1ea2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#N canvas 38 250 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 ../../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.
;
#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;