~ubuntu-branches/ubuntu/precise/puredata/precise

« back to all changes in this revision

Viewing changes to doc/5.reference/soundfiler-help.pd

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2009-12-22 21:29:31 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091222212931-nhwkzapjwsmjao1l
Tags: 0.42.5-3
* debian/control:
  - add community site to homepage field
  - improve long description
  - remove Replaces and Conflicts fields
  - add Suggests on pd-csound, pd-pdp, pd-zexy, pd-aubio
* debian/rules: add per-arch configuration flags
* debian/patches/02_kfreebsd.diff:
  - also define pd_tilde_dllextent on FreeBSD
  - fix typo (really closing #414414 this time)
  - also add hurd glue
* debian/patches/04_hurd.diff:
  - add hurd glue and s_midi_dummy.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N canvas 59 252 1102 576 12;
 
2
#N canvas 0 0 450 300 (subpatch) 0;
 
3
#X array array1 77971 float 0;
 
4
#X coords 0 1 77971 -1 300 100 1;
 
5
#X restore 71 353 graph;
 
6
#N canvas 0 0 450 300 (subpatch) 0;
 
7
#X array array2 77971 float 0;
 
8
#X coords 0 1 77971 -1 300 100 1;
 
9
#X restore 71 459 graph;
 
10
#X obj 11 313 soundfiler;
 
11
#X msg 17 241 write -aiff /tmp/foo1 array2;
 
12
#X msg 8 152 read ../sound/bell.aiff array2;
 
13
#X msg 17 199 read -raw 128 2 2 b ../sound/bell.aiff array1 array2
 
14
;
 
15
#X text 26 10 SOUNDFILER - read and write soundfiles to arrays;
 
16
#X text 548 3 When reading you can leave soundfiler to figure out which
 
17
of the three known soundfile formats the file belongs to or override
 
18
all header information using the "-raw" flag.;
 
19
#X text 665 52 Flags for reading:;
 
20
#X text 574 68 -skip <sample frames to skip in file>;
 
21
#X floatatom 11 337 0 0 0 0 - - -;
 
22
#X msg 15 175 read -resize ../sound/bell.aiff array2;
 
23
#X msg 17 288 write -nextstep -bytes 4 /tmp/foo3 array1 array2;
 
24
#X msg 16 265 write -wave -nframes 10000 /tmp/foo2 array2;
 
25
#X text 287 150 read a file;
 
26
#X text 362 173 ...optionally resize;
 
27
#X text 225 217 ...or even overriding everything;
 
28
#X text 283 240 write a file;
 
29
#X text 352 309 write stereo;
 
30
#X text 9 31 The soundfiler object reads and writes floating point
 
31
arrays to binary soundfiles which may contain 2 or 3 byte fixed point
 
32
or 4 byte floating point samples in wave \, aiff \, or next formats
 
33
(no floating point aiff \, though.). The number of channels of the
 
34
soundfile need not match the number of arrays given (extras are dropped
 
35
and unsupplied channels are zeroed out.);
 
36
#X text 575 123 -raw <headersize> <channels> <bytespersample> <endianness>
 
37
;
 
38
#X text 594 141 This causes all header information to be ignored. Endianness
 
39
is "l" ("little") for Intel machines or "b" ("big") for Macintoshes
 
40
and SGIs. You can give "n" (natural) to take the byte order your machine
 
41
prefers.;
 
42
#X text 575 86 -resize;
 
43
#X text 575 104 -maxsize <maximum number of samples we can resize to>
 
44
;
 
45
#X text 560 206 Flags for writing:;
 
46
#X text 578 227 -wave \, -nextstep \, -aiff;
 
47
#X text 579 246 -big \, -little (nextstep only!);
 
48
#X text 578 268 -skip <number of sample frames to skip in array>;
 
49
#X text 579 290 -nframes <maximum number to write>;
 
50
#X text 580 334 -normalize;
 
51
#X text 579 312 -bytes <2 \, 3 \, or 4>;
 
52
#X text 557 378 The number of channels is limited to 64;
 
53
#X text 612 413 see also:;
 
54
#X obj 606 436 tabwrite~;
 
55
#X obj 607 460 tabread4~;
 
56
#X obj 713 415 tabplay~;
 
57
#X obj 711 464 writesf~;
 
58
#X obj 712 441 readsf~;
 
59
#X text 579 354 -rate <sample rate>;
 
60
#X text 751 539 updated for Pd version 0.37;
 
61
#X connect 2 0 10 0;
 
62
#X connect 3 0 2 0;
 
63
#X connect 4 0 2 0;
 
64
#X connect 5 0 2 0;
 
65
#X connect 11 0 2 0;
 
66
#X connect 12 0 2 0;
 
67
#X connect 13 0 2 0;