~ubuntu-branches/ubuntu/natty/pd-zexy/natty

« back to all changes in this revision

Viewing changes to reference/limiter~-help.pd

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, IOhannes m zmölnig, Jonas Smedegaard
  • Date: 2010-08-20 12:17:41 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100820121741-4kxozn8b9rhee9fr
Tags: 2.2.3-1
* New upstream version

[ IOhannes m zmölnig ]
* Adopt package, on behalf of Multimedia Team.
  Closes: #546964
* Simply debian/rules with CDBS, and don't unconditionally strip
  binaries.
  Closes: #437763
* Install into /usr/lib/pd/extra/zexy/. Document usage in REAME.Debian
  and warn about change in NEWS.
* git'ify package. Add Vcs-* stanzas to control file.
* Use dpkg source format 3.0 (quilt). Drop build-dependency on quilt.

[ Jonas Smedegaard ]
* Enable CDBS copyright-check routine.
* Add copyright and licensing header to debian/rules.
* Add myself as uploader.
* Rewrite debian/copyright using rev. 135 of draft DEP5 format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N canvas 354 454 851 449 10;
 
2
#X text 189 15 limiter;
 
3
#X text 187 25 ========;
 
4
#N canvas 0 0 591 391 creation 0;
 
5
#X text 211 152 creates a default limiter (MONO \, 9-samples-buffer)
 
6
;
 
7
#X text 213 189 creates a limiter(MONO \, 10ms-buffer);
 
8
#X text 213 223 creates a limiter (multichannel \, 9-samples-buffer)
 
9
;
 
10
#X text 216 256 creates a limiter (multichannel \, 1ms-buffer !!);
 
11
#X text 82 17 "limiter [<bufsize>] [<in1> [<in2> [...]]]";
 
12
#X text 148 70 creating inlets depends ONLY on the number of arguments
 
13
\, not on the arguments themselves... !;
 
14
#X text 218 313 creates a limiter (multichannel \, 9-samples-buffer)
 
15
;
 
16
#X text 113 187 ______________;
 
17
#X text 89 150 _________________;
 
18
#X text 145 220 _________;
 
19
#X text 114 254 ______________;
 
20
#X text 199 311 __;
 
21
#X obj 23 151 limiter~;
 
22
#X obj 23 185 limiter~ 10;
 
23
#X obj 22 219 limiter~ 0 1 2 3;
 
24
#X obj 22 253 limiter~ 1 2;
 
25
#X obj 18 310 limiter~ We need 4 inlets;
 
26
#X restore 39 322 page creation;
 
27
#N canvas 62 0 762 828 modes 0;
 
28
#X text -189 189 MODE 0 : 1-treshold-limiter;
 
29
#X text -191 384 MODE 1 : 2-tresholds-limiter;
 
30
#X msg 232 255 print;
 
31
#X obj 186 316 limiter~;
 
32
#X obj 209 141 limiter~;
 
33
#X msg 273 123 help;
 
34
#X msg 272 104 print;
 
35
#X msg 209 32 mode 0;
 
36
#X msg 272 31 LIMIT;
 
37
#X msg 209 50 mode 1;
 
38
#X msg 272 49 CRACK;
 
39
#X msg 209 67 mode 2;
 
40
#X msg 272 66 COMPRESS;
 
41
#X text 342 48 crack limiter (2 tresholds);
 
42
#X text 342 66 compressor (1 treshold);
 
43
#X text 351 102 context status;
 
44
#X text 252 30 ==;
 
45
#X text 251 49 ==;
 
46
#X text 250 68 ==;
 
47
#X msg 247 302 LIMIT;
 
48
#X obj 247 286 loadbang;
 
49
#X text 341 30 normal limiter (1 treshold) [default];
 
50
#X msg 231 459 print;
 
51
#X obj 183 522 limiter~;
 
52
#X obj 244 492 loadbang;
 
53
#X msg 244 508 CRACK;
 
54
#X msg 217 716 print;
 
55
#X obj 230 760 loadbang;
 
56
#X text -185 590 MODE 2 : compressor;
 
57
#X msg 230 776 COMPRESS;
 
58
#X msg 222 629 ratio 0.5;
 
59
#X text 329 628 set compress-ratio (0.5 == 1:2);
 
60
#X text 329 605 set the treshold \, where the compressor should start
 
61
to compress;
 
62
#X text 352 677 set the compressor (limit/treshold/ratio);
 
63
#X text 331 655 set limit/holdtime/releasetime at once;
 
64
#X text 333 717 view actual settings;
 
65
#X text 337 459 view actual settings;
 
66
#X msg 234 188 limit 90;
 
67
#X msg 234 211 set 105 40 150;
 
68
#X msg 232 404 set 105 40 150;
 
69
#X msg 235 426 set2 120 1 10;
 
70
#X msg 221 654 set 110 40 150;
 
71
#X msg 221 611 treshold 10;
 
72
#X msg 220 677 compress 96 88 0.5;
 
73
#X text 328 591 set the output-limit;
 
74
#X msg 221 593 limit 98;
 
75
#X text 338 254 view actual settings;
 
76
#X text 339 212 set limit/holdtime/releasetime at once;
 
77
#X text 339 185 set output limit;
 
78
#X obj 169 790 limiter~;
 
79
#X text 335 404 set limiter1 (output-limit/hold-time/release-time)
 
80
;
 
81
#X text -260 621 the output signal will never become louder than the
 
82
specified output-limit.;
 
83
#X text -260 653 if the input-signal becomes loader than the input-treshold
 
84
\, a compressor will start working \, compressing the dynamic range
 
85
by the specified ratio. Signals lesser than the treshold will pass
 
86
through uncompressed.;
 
87
#X text -231 59 set the limiter~ to one of the 3 modes;
 
88
#X text 334 380 set both limits;
 
89
#X text -259 210 this is simple : the output will not become bigger
 
90
than the specified limit. When the input becomes small enough again
 
91
so that this condition is matched even without (positive) amplification
 
92
(this is \, when the input signal level falls below the limit) \, the
 
93
amplification will increase gradually (depending on hold- & release-time)
 
94
towards 1;
 
95
#X text 334 427 set limiter2 (input-treshold/hold-time/release-time)
 
96
;
 
97
#X msg 232 381 limits 100 108;
 
98
#X text -260 414 this limiter can be used to handle disgusting things
 
99
like cracks \, which are much louder than the "normal" musical signal.
 
100
Typically hold- and release-times for the second limiter are far smaller
 
101
than those for the first \, to ensure that the disturbance will pass
 
102
quite fast (since the crack would disturb the sensation anyhow \, we
 
103
do not care much about the distortion caused by a fast limiter). The
 
104
treshold for the 2nd limiter must be greater than the ouput-limit (if
 
105
not \, the limiter will be reset to MODE 0);
 
106
#X text -257 298 all levels (limts/tresholds) should be given in dB
 
107
to produce satisfying results (following pd's agreement on the deziBel-scale
 
108
\, 100dB are equal to 1 \, 0dB equals 0 \, ...);
 
109
#X text 354 123 context(!) help;
 
110
#X connect 2 0 3 0;
 
111
#X connect 5 0 4 0;
 
112
#X connect 6 0 4 0;
 
113
#X connect 7 0 4 0;
 
114
#X connect 8 0 4 0;
 
115
#X connect 9 0 4 0;
 
116
#X connect 10 0 4 0;
 
117
#X connect 11 0 4 0;
 
118
#X connect 12 0 4 0;
 
119
#X connect 19 0 3 0;
 
120
#X connect 20 0 19 0;
 
121
#X connect 22 0 23 0;
 
122
#X connect 24 0 25 0;
 
123
#X connect 25 0 23 0;
 
124
#X connect 26 0 49 0;
 
125
#X connect 27 0 29 0;
 
126
#X connect 29 0 49 0;
 
127
#X connect 30 0 49 0;
 
128
#X connect 37 0 3 0;
 
129
#X connect 38 0 3 0;
 
130
#X connect 39 0 23 0;
 
131
#X connect 40 0 23 0;
 
132
#X connect 41 0 49 0;
 
133
#X connect 42 0 49 0;
 
134
#X connect 43 0 49 0;
 
135
#X connect 45 0 49 0;
 
136
#X connect 57 0 23 0;
 
137
#X restore 184 321 page modes;
 
138
#X msg 398 249 print;
 
139
#X obj 445 319 *~;
 
140
#X obj 476 319 *~;
 
141
#X floatatom 476 199 0 0 0 2 left - -;
 
142
#X floatatom 562 200 0 0 0 2 right - -;
 
143
#X floatatom 520 181 0 0 0 2 both - -;
 
144
#X obj 476 266 limiter~ 50 1;
 
145
#N canvas 0 153 455 493 tabwrite 0;
 
146
#N canvas 0 0 450 300 graph1 0;
 
147
#X array array1 32768 float 0;
 
148
#X coords 0 1 32767 -1 200 140 1;
 
149
#X restore 130 196 graph;
 
150
#X obj 111 63 inlet~;
 
151
#X msg 214 78 \; array1 resize 32768;
 
152
#X obj 111 85 tabwrite~ array1;
 
153
#X obj 151 64 bang~;
 
154
#X obj 214 59 loadbang;
 
155
#X obj 337 88 block~ 32768 8;
 
156
#X connect 1 0 3 0;
 
157
#X connect 4 0 3 0;
 
158
#X connect 5 0 2 0;
 
159
#X restore 372 408 pd tabwrite;
 
160
#X obj 382 341 env~;
 
161
#X floatatom 382 359 4 0 0 0 - - -;
 
162
#X text 30 304 to learn more about this object \, try these;
 
163
#X text 48 371 http://iem.kug.ac.at/~zmoelnig;
 
164
#N canvas 59 76 600 400 generator~ 0;
 
165
#X obj 86 49 inlet;
 
166
#X obj 252 54 inlet;
 
167
#X obj 112 229 outlet~;
 
168
#X obj 112 185 *~;
 
169
#X obj 151 185 *~;
 
170
#X obj 122 128 osc~ 440;
 
171
#X obj 151 145 osc~ 689.062;
 
172
#X obj 112 163 line~;
 
173
#X obj 167 162 line~;
 
174
#X msg 167 128 \$1 100;
 
175
#X msg 112 111 \$1 100;
 
176
#X obj 86 97 f;
 
177
#X obj 252 98 f;
 
178
#X obj 154 229 outlet~;
 
179
#X obj 86 72 dbtorms;
 
180
#X obj 252 78 dbtorms;
 
181
#X connect 0 0 14 0;
 
182
#X connect 1 0 15 0;
 
183
#X connect 3 0 2 0;
 
184
#X connect 4 0 13 0;
 
185
#X connect 5 0 3 1;
 
186
#X connect 6 0 4 0;
 
187
#X connect 7 0 3 0;
 
188
#X connect 8 0 4 1;
 
189
#X connect 9 0 8 0;
 
190
#X connect 10 0 7 0;
 
191
#X connect 11 0 10 0;
 
192
#X connect 12 0 9 0;
 
193
#X connect 14 0 11 0;
 
194
#X connect 15 0 12 0;
 
195
#X restore 476 221 pd generator~;
 
196
#X text 37 99 it is quite important to delay the original signals before
 
197
the limiter-amplification is applied to prevent clicks !!!;
 
198
#X text 52 353 1906:forum::f�r::uml�ute:2001;
 
199
#X text 36 41 limiter will output the amplification-factor that has
 
200
to be applied on all INlet~s to get a beautiful limited multichannel-signal
 
201
that preserves the balance between the channels;
 
202
#X text 585 170 level of the inlets;
 
203
#X text 511 148 (give some 190dB and notice no clipping);
 
204
#X obj 493 298 z~ 64;
 
205
#X obj 445 299 z~ 64;
 
206
#X text 539 17 part of zexy;
 
207
#X floatatom 496 354 0 0 100 0 - - -;
 
208
#N canvas 159 26 532 285 output 0;
 
209
#X obj 348 160 t b;
 
210
#X obj 348 110 f;
 
211
#X obj 348 60 inlet;
 
212
#X text 354 29 mute;
 
213
#X obj 348 185 f;
 
214
#X msg 436 180 0;
 
215
#X msg 348 85 bang;
 
216
#X obj 348 135 moses 1;
 
217
#X obj 407 110 moses 1;
 
218
#X obj 133 148 dbtorms;
 
219
#X obj 20 155 inlet~;
 
220
#X obj 239 41 inlet;
 
221
#X text 239 18 level;
 
222
#X msg 146 65 set \$1;
 
223
#X obj 146 90 outlet;
 
224
#X msg 254 65 \; pd dsp 1;
 
225
#X obj 133 198 line~;
 
226
#X obj 20 207 *~;
 
227
#X obj 20 232 dac~;
 
228
#X obj 133 173 pack 0 50;
 
229
#X text 20 132 audio;
 
230
#X text 146 114 show level;
 
231
#X obj 436 155 t b;
 
232
#X obj 20 181 hip~ 1;
 
233
#X obj 133 42 r \$0master-lvl;
 
234
#X obj 80 155 inlet~;
 
235
#X obj 80 207 *~;
 
236
#X obj 80 181 hip~ 1;
 
237
#X obj 239 105 s \$0master-lvl;
 
238
#X obj 407 85 r \$0master-lvl;
 
239
#X obj 348 210 s \$0master-lvl;
 
240
#X connect 0 0 4 0;
 
241
#X connect 1 0 7 0;
 
242
#X connect 2 0 6 0;
 
243
#X connect 4 0 30 0;
 
244
#X connect 5 0 30 0;
 
245
#X connect 6 0 1 0;
 
246
#X connect 7 0 0 0;
 
247
#X connect 7 1 22 0;
 
248
#X connect 8 1 4 1;
 
249
#X connect 9 0 19 0;
 
250
#X connect 10 0 23 0;
 
251
#X connect 11 0 15 0;
 
252
#X connect 11 0 28 0;
 
253
#X connect 13 0 14 0;
 
254
#X connect 16 0 17 1;
 
255
#X connect 16 0 26 1;
 
256
#X connect 17 0 18 0;
 
257
#X connect 19 0 16 0;
 
258
#X connect 22 0 5 0;
 
259
#X connect 23 0 17 0;
 
260
#X connect 24 0 9 0;
 
261
#X connect 24 0 13 0;
 
262
#X connect 25 0 27 0;
 
263
#X connect 26 0 18 1;
 
264
#X connect 27 0 26 0;
 
265
#X connect 29 0 1 1;
 
266
#X connect 29 0 8 0;
 
267
#X restore 458 382 pd output;
 
268
#X msg 534 355 MUTE;
 
269
#X text 37 132 this is \, because the limiter algorithm needs some
 
270
time (e.g. the outcoming signal is delayed by some samples) \; directly
 
271
multiplying would therefore be a bit too late \, in case a spike appears.
 
272
Adding a small delay takes care of this psychoacoustically (you won't
 
273
here the click);
 
274
#X text 532 300 just a small delay of 64 samples;
 
275
#X text 531 44 updated for zexy-2.0;
 
276
#X connect 4 0 10 0;
 
277
#X connect 5 0 26 0;
 
278
#X connect 5 0 12 0;
 
279
#X connect 6 0 11 0;
 
280
#X connect 6 0 26 1;
 
281
#X connect 7 0 16 0;
 
282
#X connect 8 0 16 1;
 
283
#X connect 9 0 7 0;
 
284
#X connect 9 0 8 0;
 
285
#X connect 10 0 6 0;
 
286
#X connect 10 0 5 1;
 
287
#X connect 12 0 13 0;
 
288
#X connect 16 0 10 0;
 
289
#X connect 16 0 23 0;
 
290
#X connect 16 1 10 1;
 
291
#X connect 16 1 22 0;
 
292
#X connect 22 0 6 1;
 
293
#X connect 23 0 5 0;
 
294
#X connect 25 0 26 2;
 
295
#X connect 26 0 25 0;
 
296
#X connect 27 0 26 3;