aboutsummaryrefslogtreecommitdiff
path: root/test_chimaera_oscmidi.pd
blob: 4494196dcd89bf67ec3ffda9259af4204dd316ea (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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#N canvas 857 1 1062 1013 10;
#X declare -lib mrpeach;
#X obj 21 393 routeOSC /midi;
#N canvas 1350 457 570 554 oscmidi2rawmidi 0;
#X obj 239 -82 inlet;
#X obj 288 55 >> 8;
#X obj 315 86 & 127;
#X obj 468 94 & 127;
#X obj 265 -44 listto;
#X obj 461 -82 inlet;
#X text 211 -107 OSC MIDI 4 bytes;
#X text 441 -109 OSC Timestamp;
#X text 322 55 data 1;
#X text 474 59 data 2;
#X obj 111 47 >> 0;
#X obj 439 61 >> 16;
#X obj 78 80 & 240;
#X obj 180 76 & 15;
#X text 117 80 system;
#X text 213 74 channel;
#X obj 217 145 pack f f f f;
#X obj 327 299 ctlout;
#X obj 419 298 touchout;
#X obj 206 299 polytouchout;
#X obj 124 299 noteout;
#X msg 239 242 \$2 \$3 \$1;
#X msg 451 244 \$2 \$1;
#X obj 495 298 bendout;
#X msg 349 242 \$3 \$2 \$1;
#X obj 241 182 route 128 144 160 176 208 224;
#X msg 79 239 \$2 0 \$1;
#X msg 157 239 \$2 \$3 \$1;
#X msg 526 246 \$2 \$1;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 2 0 16 2;
#X connect 3 0 16 3;
#X connect 4 0 1 0;
#X connect 4 0 10 0;
#X connect 4 0 11 0;
#X connect 10 0 12 0;
#X connect 10 0 13 0;
#X connect 11 0 3 0;
#X connect 12 0 16 0;
#X connect 13 0 16 1;
#X connect 16 0 25 0;
#X connect 21 0 19 0;
#X connect 22 0 18 0;
#X connect 24 0 17 0;
#X connect 25 0 26 0;
#X connect 25 1 27 0;
#X connect 25 2 21 0;
#X connect 25 3 24 0;
#X connect 25 4 22 0;
#X connect 25 5 28 0;
#X connect 26 0 20 0;
#X connect 27 0 20 0;
#X connect 28 0 23 0;
#X restore 39 433 pd oscmidi2rawmidi;
#X text 724 939 Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch)Released
under the zlib license.;
#X msg 687 205 sendtyped /engines/oscmidi/enabled ii 13 1;
#X msg 687 227 sendtyped /engines/oscmidi/path is 13 /midi;
#X msg 690 247 sendtyped /engines/oscmidi/format is 13 int32;
#X obj 372 246 list split 1;
#X obj 438 275 list trim;
#X floatatom 432 325 5 0 0 0 - - -, f 5;
#X obj 397 300 route /sensors/number;
#X msg 436 88 disconnect;
#X msg 435 64 connect chimaera.local 4444;
#X obj 402 191 routeOSC /success /fail;
#X obj 422 225 print success;
#X obj 513 224 print fail;
#X obj 21 8 import mrpeach;
#X msg 71 71 connect chimaera.local 4444;
#X msg 72 132 disconnect;
#X obj 22 161 udpsend;
#X obj 398 115 tcpclient;
#X obj 422 164 unpackOSCstream;
#X obj 563 132 packOSCstream;
#X obj 71 101 packOSC;
#X msg 125 101 sendtyped /config/mode is 13 osc.slip.tcp;
#X obj 451 144 tgl 15 0 empty empty connected 17 7 0 10 -258113 -1
-1 0 1;
#X text 21 42 STEP 1: Put Chimaera Config Socket into TCP mode;
#X text 397 39 STEP 2: Connect to Chimaera Config Socket;
#X text 690 39 STEP 3: Configure Chimaera Output for UDP and TUIO1
;
#X msg 690 61 sendtyped /engines/enabled ii 13 0;
#X msg 689 84 sendtyped /engines/server ii 13 0;
#X msg 689 125 sendtyped /engines/address is 13 melamori.local:3333
;
#X msg 689 144 sendtyped /engines/enabled ii 13 1;
#X msg 691 165 sendtyped /engines/reset i 13;
#X msg 691 837 sendtyped /sensors/number i 13;
#X msg 680 879 sendtyped /sensors/rate ii 13 2000;
#X text 22 294 STEP 4: Receive Chimaera Event Data;
#X msg 689 106 sendtyped /engines/mode is 13 osc.slip.tcp;
#X obj 21 319 tcpreceive 3333;
#X obj 51 359 unpackOSCstream;
#X msg 690 266 sendtyped /engines/oscmidi/multi ii 13 0;
#X msg 650 900 sendtyped /config/mode is 13 osc.udp;
#X msg 694 597 sendtyped /sensors/group/attributes/0/min if 13 0;
#X msg 694 620 sendtyped /sensors/group/attributes/0/max if 13 1;
#X msg 694 643 sendtyped /sensors/group/attributes/0/north ii 13 0
;
#X msg 694 741 sendtyped /sensors/group/attributes/1/max if 13 1;
#X msg 694 764 sendtyped /sensors/group/attributes/1/north ii 13 1
;
#X msg 694 717 sendtyped /sensors/group/attributes/1/min if 13 0;
#X msg 694 666 sendtyped /sensors/group/attributes/0/south ii 13 1
;
#X msg 694 689 sendtyped /sensors/group/attributes/0/scale ii 13 0
;
#X msg 694 787 sendtyped /sensors/group/attributes/1/south ii 13 0
;
#X msg 694 810 sendtyped /sensors/group/attributes/1/scale ii 13 0
;
#X msg 692 308 sendtyped /engines/oscmidi/attributes/0/mapping is 13
control_change;
#X msg 692 346 sendtyped /engines/oscmidi/attributes/0/offset if 13
20.833;
#X msg 692 372 sendtyped /engines/oscmidi/attributes/0/range if 13
53.33;
#X msg 692 396 sendtyped /engines/oscmidi/attributes/0/controller ii
13 7;
#X msg 692 436 sendtyped /engines/oscmidi/attributes/1/mapping is 13
control_change;
#X msg 692 474 sendtyped /engines/oscmidi/attributes/1/offset if 13
20.833;
#X msg 692 500 sendtyped /engines/oscmidi/attributes/1/range if 13
53.33;
#X msg 692 524 sendtyped /engines/oscmidi/attributes/1/controller ii
13 7;
#X connect 0 0 1 0;
#X connect 3 0 21 0;
#X connect 4 0 21 0;
#X connect 5 0 21 0;
#X connect 6 1 7 0;
#X connect 7 0 9 0;
#X connect 9 0 8 0;
#X connect 10 0 19 0;
#X connect 11 0 19 0;
#X connect 12 0 13 0;
#X connect 12 0 6 0;
#X connect 12 1 14 0;
#X connect 16 0 18 0;
#X connect 17 0 18 0;
#X connect 19 0 20 0;
#X connect 19 2 24 0;
#X connect 20 0 12 0;
#X connect 21 0 19 0;
#X connect 22 0 18 0;
#X connect 23 0 22 0;
#X connect 28 0 21 0;
#X connect 29 0 21 0;
#X connect 30 0 21 0;
#X connect 31 0 21 0;
#X connect 32 0 21 0;
#X connect 33 0 21 0;
#X connect 34 0 21 0;
#X connect 36 0 21 0;
#X connect 37 0 38 0;
#X connect 38 0 0 0;
#X connect 38 1 1 1;
#X connect 39 0 21 0;
#X connect 40 0 21 0;
#X connect 41 0 21 0;
#X connect 42 0 21 0;
#X connect 43 0 21 0;
#X connect 44 0 21 0;
#X connect 45 0 21 0;
#X connect 46 0 21 0;
#X connect 47 0 21 0;
#X connect 48 0 21 0;
#X connect 49 0 21 0;
#X connect 50 0 21 0;
#X connect 51 0 21 0;
#X connect 52 0 21 0;
#X connect 53 0 21 0;
#X connect 54 0 21 0;
#X connect 55 0 21 0;
#X connect 56 0 21 0;
#X connect 57 0 21 0;
#X connect 58 0 21 0;