aboutsummaryrefslogtreecommitdiff
path: root/iemabs/maverage~-help.pd
blob: afeebbe4dad994a1875fd4e90d6a53a70a6ab2a2 (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
#N canvas 97 84 730 428 10;
#X floatatom 23 284 9 0 0 0 - - -;
#X text 41 44 dsp ON/OFF;
#X obj 22 65 dsp;
#X floatatom 22 86 5 0 0 0 - - -;
#X text 68 87 % cpu;
#X obj 23 265 unsig~;
#X obj 22 45 tgl 15 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0 1
;
#X obj 36 151 noise~;
#X obj 22 215 +~;
#X floatatom 160 286 9 0 0 0 - - -;
#X obj 160 267 unsig~;
#X text 7 9 maverage~ : moving average filter;
#X text 261 167 changing the average-time resets the calculation the
first average-time milliseconds !!;
#X text 276 241 1.arg: max. average-time <float> [ms] \; 2.arg: average-time
<float> [ms];
#X text 162 49 N = 0.001 * average-time_ms * samplerate;
#X text 138 34 y[n] = (x[n] + x[n-1] + x[n-2] +...+ x[n-N]) / N;
#X text 226 9 with IIR-solution;
#X obj 22 126 sig~ 0.75;
#X obj 36 177 *~ 0.25;
#X obj 160 248 maverage~ 1000 500;
#X floatatom 263 219 5 0 1000 0 - - -;
#X text 300 217 ms;
#X text 21 298 noisy signal;
#X text 157 303 signal after filtering;
#X text 157 313 only DC is measured;
#X text 262 200 <float> average-time <float> [ms] (1.45 .. 1000 ms)
;
#X text 175 378 IEM KUG;
#X text 159 366 musil;
#X text 189 366 @;
#X text 195 366 iem.at;
#X text 110 355 (c) Thomas Musil 2000 - 2005;
#X text 158 388 Graz \, Austria;
#X connect 2 0 3 0;
#X connect 5 0 0 0;
#X connect 6 0 2 0;
#X connect 7 0 18 0;
#X connect 8 0 5 0;
#X connect 8 0 19 0;
#X connect 10 0 9 0;
#X connect 17 0 8 0;
#X connect 18 0 8 1;
#X connect 19 0 10 0;
#X connect 20 0 19 1;