-
Notifications
You must be signed in to change notification settings - Fork 2
/
zirk_speaker-help.pd
126 lines (126 loc) · 3.54 KB
/
zirk_speaker-help.pd
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#N canvas 279 23 743 689 10;
#X obj 52 626 *~ 0.1;
#X obj 205 81 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 205 105 on \$1;
#X obj 52 653 throw~ zirk_speaker1;
#X obj 336 650 zirk_output 1;
#X obj 387 338 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 124 474 5 0 0 0 db - -;
#X obj 429 650 zirk_output 2;
#X msg 353 295 output \$1;
#X msg 353 262 1;
#X msg 393 262 2;
#X obj 124 435 zirk_speaker 1;
#X obj 339 599 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 88 601 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X floatatom 46 78 5 0 1 0 rms - -;
#X floatatom 124 78 5 -100 12 0 db - -;
#X text 117 55 -100 - +12;
#X text 46 55 0 - 1;
#X msg 293 162 delay \$1;
#X msg 347 219 phase \$1;
#X text 406 218 invert the phase?;
#X floatatom 293 136 5 0 1000 0 ms - -;
#X obj 347 199 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 124 105 db \$1;
#X text 168 105 gain;
#X obj 520 650 dac~ 1 2;
#X obj 520 625 *~ 1;
#X obj 520 598 catch~ foo;
#X msg 435 262 symbol foo;
#X text 422 295 set the output;
#X text 516 260 floats: set zirk_output#;
#X text 517 277 symbols: set sendname for throw~;
#X text 18 17 a virtual speaker \, a routable step between zirk_id
and zirk_output instances, f 77;
#X text 332 557 receive audio to either zirk_output# or a named catch~
, f 31;
#N canvas 0 23 416 294 plings 0;
#X msg 147 126 0 10 \, 1 100 10 \, 0.5 200 110 \, 0 250 310;
#X obj 58 215 *~;
#X obj 58 126 random 2200;
#X obj 58 152 + 200;
#X obj 58 183 osc~;
#X obj 58 100 t b b;
#X obj 58 249 outlet~;
#X obj 58 18 loadbang;
#X obj 58 47 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
;
#X obj 147 152 vline~;
#X obj 58 73 metro 500;
#X connect 0 0 9 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 2 0;
#X connect 5 1 0 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 9 0 1 1;
#X connect 10 0 5 0;
#X restore 52 568 pd plings;
#X text 250 105 enable/disable DSP;
#X text 426 76 creation arg: speaker id;
#X text 47 530 send audio to the speaker id: zirk_speaker#, f 29;
#N canvas 697 80 289 352 recording 0;
#X obj 35 243 outlet;
#X obj 35 215 list trim;
#X obj 35 85 savepanel;
#X obj 35 57 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 52 149 start;
#X msg 103 150 stop;
#X text 31 283 this is a wrapper for writesf~;
#X obj 34 308 writesf~;
#X text 150 86 <-- open file first;
#X text 151 150 <-- then record;
#X obj 35 190 list prepend record;
#X text 31 19 record speaker audio to a soundfile;
#X text 95 309 <- see help for messaging;
#X msg 35 116 open -bytes 3 \$1;
#X connect 1 0 0 0;
#X connect 2 0 13 0;
#X connect 3 0 2 0;
#X connect 4 0 10 0;
#X connect 5 0 10 0;
#X connect 10 0 1 0;
#X connect 13 0 10 0;
#X restore 415 406 pd recording;
#X text 168 484 this is the received pre-level \, before gain is applied
;
#X msg 387 366 report level \$1;
#X text 414 337 report pre-level?;
#X text 168 465 report level in db;
#X text 352 161 optional delay in ms \, 0 to 1000;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 2 0 11 0;
#X connect 5 0 40 0;
#X connect 8 0 11 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 11 0 6 0;
#X connect 12 0 4 0;
#X connect 12 0 7 0;
#X connect 12 0 26 1;
#X connect 13 0 0 1;
#X connect 14 0 11 0;
#X connect 15 0 23 0;
#X connect 18 0 11 0;
#X connect 19 0 11 0;
#X connect 21 0 18 0;
#X connect 22 0 19 0;
#X connect 23 0 11 0;
#X connect 26 0 25 0;
#X connect 26 0 25 1;
#X connect 27 0 26 0;
#X connect 28 0 8 0;
#X connect 34 0 0 0;
#X connect 38 0 11 0;
#X connect 40 0 11 0;