aboutsummaryrefslogtreecommitdiff
path: root/test_chimaera_oscmidi.pd
blob: 0cd4d30b0f877b3390fe036dbb3f10af2edf620c (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
#N canvas 477 4 1062 602 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 700 529 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 msg 693 408 sendtyped /sensors/group/attributes/1 iffiii 13 0 1
1 0 0;
#X msg 692 387 sendtyped /sensors/group/attributes/0 iffiii 13 0 1
0 1 0;
#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 690 366 sendtyped /sensors/number i 13;
#X msg 695 428 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 690 286 sendtyped /engines/oscmidi/attributes/0 isffi 13 control_change
20.833 53.33 7;
#X msg 691 326 sendtyped /engines/oscmidi/attributes/1 isffi 13 control_change
20.833 53.33 7;
#X msg 665 449 sendtyped /config/mode is 13 osc.udp;
#X connect 0 0 1 0;
#X connect 3 0 23 0;
#X connect 4 0 23 0;
#X connect 5 0 23 0;
#X connect 6 1 7 0;
#X connect 7 0 9 0;
#X connect 9 0 8 0;
#X connect 10 0 21 0;
#X connect 11 0 21 0;
#X connect 12 0 13 0;
#X connect 12 0 6 0;
#X connect 12 1 14 0;
#X connect 15 0 23 0;
#X connect 16 0 23 0;
#X connect 18 0 20 0;
#X connect 19 0 20 0;
#X connect 21 0 22 0;
#X connect 21 2 26 0;
#X connect 22 0 12 0;
#X connect 23 0 21 0;
#X connect 24 0 20 0;
#X connect 25 0 24 0;
#X connect 30 0 23 0;
#X connect 31 0 23 0;
#X connect 32 0 23 0;
#X connect 33 0 23 0;
#X connect 34 0 23 0;
#X connect 35 0 23 0;
#X connect 36 0 23 0;
#X connect 38 0 23 0;
#X connect 39 0 40 0;
#X connect 40 0 0 0;
#X connect 40 1 1 1;
#X connect 41 0 23 0;
#X connect 42 0 23 0;
#X connect 43 0 23 0;
#X connect 44 0 23 0;