aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/writesf~-help.pd
blob: 03ea0b73b25638f6c4d71f06013aec7a199b640d (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
#N canvas 146 65 733 567 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 131 538 soundfiler;
#X text 485 540 updated for Pd version 0.37;
#X text 36 539 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 33 339 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 233 540 readsf~;
#X text 66 413 -wave \, -nextstep \, -aiff;
#X text 67 434 -big \, -little (nextstep only!);
#X text 67 455 -bytes <2 \, 3 \, or 4>;
#X text 67 477 -rate <sample rate>;
#X text 32 395 The "open" message may take flag-style arguments as
follows:;
#X text 27 498 (setting sample rate will affect the soundfile header
but the file will _not_ be resampled.);
#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;