-
Notifications
You must be signed in to change notification settings - Fork 4
/
OSCCleanFloat.pd
89 lines (89 loc) · 2.37 KB
/
OSCCleanFloat.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
#N canvas 646 22 650 610 10;
#X obj 378 248 metro \$1;
#X obj 168 124 inlet;
#X obj 378 226 != 0;
#X obj 388 151 \$1;
#X obj 414 151 loadbang;
#X text 409 174 Default Frequency (ms);
#X obj 147 198 tgl 15 0 empty empty Frequency_Controll_[on/off] 17
7 0 10 -262144 -1 -1 0 1;
#X obj 114 124 inlet;
#X text 47 124 Data input;
#X obj 147 243 != 1;
#X floatatom 436 249 5 0 0 1 Raw_input - -, f 5;
#X floatatom 520 319 5 0 0 0 Summed_Values - -, f 5;
#X obj 387 347 + 1;
#X text 256 446 See also resample \, sendmany-osc.pd and lop;
#X obj 204 283 ==;
#X obj 99 343 f;
#X floatatom 111 369 5 0 0 0 - - -, f 5;
#X obj 204 326 sel 0;
#X obj 99 394 outlet float;
#X obj 414 326 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 436 213 spigot;
#X obj 385 303 i;
#X floatatom 453 389 5 0 0 0 Num_Values - -, f 5;
#X obj 387 325 i;
#X obj 360 402 /;
#X floatatom 360 425 5 0 0 0 Averaged_Value - -, f 5;
#X obj 114 267 spigot;
#X text 45 28 Cleans data flow for OSC output.;
#X text 45 43 Unchanged values are not re-sent.;
#X text 343 28 (Tested only for ints and floats);
#X text 46 57 Too frequent values are sent less frequent and averaged.
;
#X text 207 123 Freq.Cont. [on/off];
#X obj 378 130 inlet;
#X text 417 129 Set frequency (ms);
#X text 46 72 Set frequency with \$1 creation argument or 3rd inlet.
;
#X obj 325 141 sel 1;
#X obj 378 372 i;
#X obj 414 303 +;
#X obj 401 273 i 0;
#X obj 378 174 i 16;
#X text 412 187 16.6666ms for 60FPS;
#X text 439 268 Todo: disable metro when flow goes slower ?;
#X connect 0 0 36 0;
#X connect 0 0 38 0;
#X connect 1 0 6 0;
#X connect 1 0 35 0;
#X connect 2 0 0 0;
#X connect 3 0 39 0;
#X connect 4 0 3 0;
#X connect 6 0 9 0;
#X connect 6 0 20 1;
#X connect 7 0 20 0;
#X connect 7 0 26 0;
#X connect 9 0 26 1;
#X connect 10 0 37 0;
#X connect 11 0 24 1;
#X connect 12 0 36 1;
#X connect 12 0 23 1;
#X connect 14 0 17 0;
#X connect 15 0 14 1;
#X connect 15 0 16 0;
#X connect 15 0 18 0;
#X connect 17 0 15 0;
#X connect 19 0 23 0;
#X connect 20 0 10 0;
#X connect 21 0 11 0;
#X connect 21 0 37 1;
#X connect 23 0 12 0;
#X connect 24 0 25 0;
#X connect 25 0 14 0;
#X connect 25 0 15 1;
#X connect 26 0 15 1;
#X connect 26 0 14 0;
#X connect 32 0 39 0;
#X connect 35 0 39 0;
#X connect 35 1 0 0;
#X connect 36 0 24 0;
#X connect 36 0 22 0;
#X connect 37 0 19 0;
#X connect 37 0 21 0;
#X connect 38 0 21 1;
#X connect 38 0 37 1;
#X connect 39 0 2 0;
#X connect 39 0 0 1;