writesf~
From Pdpedia
| {{{example_image}}} caption | |
| Description: | record sound to disk |
|---|---|
| Abbreviation: | |
| Library: | vanilla |
| Author(s): | Miller S. Puckette and others |
| Developer(s): | |
| Release version: | |
| Release date: | 2007 |
| Status: | active |
| Dependencies: | |
| License: | BSD |
| Website: | http://crca.ucsd.edu/~msp/software.html |
| Programming Language: | |
| Platform(s): | GNU/Linux, Mac OS X, Windows |
| Language: | English |
| Data type(s): | signal |
| Distribution(s): | DesireData, PDa, Pd-extended, Pd-vanilla, puredata debian package, pure:dyne |
writesf~ -- write audio signals to a soundfile
start streaming audio
stop streaming audio
creation argument is number of channels
(1 to 64).
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.
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").
The "open" message may take flag-style arguments as follows:
-wave, -nextstep, -aiff
-big, -little (nextstep only!)
-bytes <2, 3, or 4>
-rate <sample rate>
(setting sample rate will affect the soundfile header but the file will _not_ be resampled.)
see also:
create 24-bit soundfile
create 32-bit floating-point soundfile
updated for Pd version 0.37
Contents |

