aboutsummaryrefslogtreecommitdiff
path: root/iemhelp/help-maverage~.pd
blob: b2ff94c9c54304e0e36ef9db856279491ac30ae4 (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
#N canvas 97 84 726 424 10;
#X floatatom 23 284 9 0 0 0 - - -;
#X text 15 360 (c) musil@iem.kug.ac.at;
#X text 57 373 IEM KUG;
#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 1 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 32 385 graz \, austria 2003;
#X connect 4 0 5 0;
#X connect 7 0 0 0;
#X connect 8 0 4 0;
#X connect 9 0 20 0;
#X connect 10 0 7 0;
#X connect 10 0 21 0;
#X connect 12 0 11 0;
#X connect 19 0 10 0;
#X connect 20 0 10 1;
#X connect 21 0 12 0;
#X connect 22 0 21 1;