blob: 7cbb915b9b03d9dbce80e07ecbced9e4a7b1edd8 (
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
|
#N canvas 279 74 734 440 12;
#X msg 592 11 \; pd dsp 1;
#X msg 141 163 print;
#X msg 53 83 bang;
#X msg 140 115 start;
#X msg 142 141 stop;
#X obj 53 114 del 1000;
#X text 41 9 writesf~ -- write audio signals to a soundfile;
#X text 230 212 creation argument is number of channels;
#X text 259 234 (1 to 64).;
#X text 193 115 start streaming audio;
#X text 188 141 stop streaming audio;
#X obj 131 207 writesf~ 2;
#X msg 131 31 open /tmp/foo.wav;
#X obj 115 408 soundfiler;
#X text 454 407 updated for Pd version 0.37;
#X text 23 408 see also:;
#X obj 145 185 osc~ 440;
#X text 34 257 writesf~ creates a subthread whose task is to write
audio streams to disk. You need not provide any disk access time between
"open" and "start" \, but between "stop" and the next "open" you must
give the object time to flush all the output to disk.;
#X msg 131 86 open -bytes 4 /tmp/foo.wav;
#X text 300 30 create a new 16-bit soundfile;
#X text 377 59 create 24-bit soundfile;
#X text 376 86 create 32-bit floating-point soundfile;
#X msg 131 59 open -bytes 3 /tmp/foo.wav;
#X text 32 338 The soundfile is 2- or 3-byte fixed point ("pcm") or
4-byte floating-point. The soundfile format is determined by the file
extent ("foo.wav" \, "foo.aiff" \, or "foo.snd").;
#X obj 217 410 readsf~;
#X connect 1 0 11 0;
#X connect 2 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 11 0;
#X connect 4 0 11 0;
#X connect 5 0 4 0;
#X connect 12 0 11 0;
#X connect 16 0 11 0;
#X connect 18 0 11 0;
#X connect 22 0 11 0;
|