aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2014-06-16 19:11:19 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2014-06-16 19:11:19 +0200
commit6e1bcc2412d328e33d1595432f16a049eac4ab1c (patch)
tree29d12f7567a7a4f978b950f30ecbe2303ba53458
parent60688d09a75456753ccc2573fc34a60cf88f505d (diff)
downloadchimaera_pd-6e1bcc2412d328e33d1595432f16a049eac4ab1c.zip
chimaera_pd-6e1bcc2412d328e33d1595432f16a049eac4ab1c.tar.gz
chimaera_pd-6e1bcc2412d328e33d1595432f16a049eac4ab1c.tar.bz2
chimaera_pd-6e1bcc2412d328e33d1595432f16a049eac4ab1c.tar.xz
update dummy example, add oscmidi example
-rw-r--r--test_chimaera_dummy.pd301
-rw-r--r--test_chimaera_oscmidi.pd91
2 files changed, 223 insertions, 169 deletions
diff --git a/test_chimaera_dummy.pd b/test_chimaera_dummy.pd
index 5a7a90d..85a1aaf 100644
--- a/test_chimaera_dummy.pd
+++ b/test_chimaera_dummy.pd
@@ -1,175 +1,138 @@
#N canvas 487 1 936 821 10;
-#X obj 296 181 unpack i i i;
-#X obj 146 98 routeOSC /on /set /off /idle;
-#X obj 197 459 dac~;
-#X obj 145 179 unpack i i i f f f;
-#X floatatom 51 223 5 0 0 0 - - -, f 5;
-#X floatatom 51 250 5 0 0 0 - - -, f 5;
-#X text -15 223 Blob ID;
-#X text -15 250 Group ID;
-#X text -14 275 Polarity;
-#X obj 51 278 >> 8;
-#X obj 52 306 vradio 15 1 0 2 empty empty empty 0 -8 0 10 -262144 -1
--1 1;
-#X text 70 321 south;
-#X text 70 306 north;
-#X text -13 294 comment;
-#X obj 201 689 packOSC;
-#X msg 38 639 disconnect;
-#X msg 12 619 connect chimaera.local 4444;
-#X obj 138 755 udpsend;
-#X obj 537 603 udpreceive 4444;
-#X obj 538 633 unpackOSC;
-#X obj 537 670 routeOSC /success /fail;
-#X msg 225 637 send /sensors/number 13;
-#X obj 503 730 print success;
-#X obj 641 723 print fail;
-#X obj 761 567 udpreceive 6666;
-#X obj 146 12 tcpreceive 3333;
-#X obj 15 161 print;
-#X obj 28 62 unpackOSCstream;
-#X obj 13 99 routeOSC /dump;
-#X obj -1 130 unpack i b;
-#X obj 148 56 unpackOSCstream;
-#X msg 182 581 send /engines/mode 13 osc.slip.tcp;
-#X msg 214 619 send /engines/dummy/enabled 13 1;
-#X msg 200 599 send /engines/enabled 13 1;
-#X msg 165 562 send /engines/enabled 13 0;
-#N canvas 1322 679 450 300 mux 1;
-#X obj 7 210 spigot;
-#X obj 17 184 == 0;
-#X obj 79 9 inlet;
-#X obj 15 271 outlet;
-#X obj 64 271 outlet;
-#X obj 116 270 outlet;
-#X obj 168 272 outlet;
-#X obj 219 274 outlet;
-#X obj 269 276 outlet;
-#X obj 318 272 outlet;
-#X obj 368 274 outlet;
-#X obj 61 214 spigot;
-#X obj 117 214 spigot;
-#X obj 169 216 spigot;
-#X obj 217 220 spigot;
-#X obj 265 214 spigot;
-#X obj 317 212 spigot;
-#X obj 369 212 spigot;
-#X obj 71 188 == 1;
-#X obj 127 188 == 2;
-#X obj 179 190 == 3;
-#X obj 227 194 == 4;
-#X obj 275 188 == 5;
-#X obj 327 186 == 6;
-#X obj 379 186 == 7;
-#X obj 334 55 inlet;
-#X connect 0 0 3 0;
-#X connect 1 0 0 1;
-#X connect 2 0 0 0;
-#X connect 2 0 11 0;
-#X connect 2 0 12 0;
-#X connect 2 0 13 0;
-#X connect 2 0 14 0;
+#X obj 275 524 unpack i i i;
+#X obj 166 481 routeOSC /on /set /off /idle;
+#X obj 174 750 dac~;
+#X obj 117 526 unpack i i i f f f;
+#X obj 229 195 packOSC;
+#X msg 66 123 disconnect;
+#X msg 40 103 connect chimaera.local 4444;
+#X obj 166 239 udpsend;
+#X obj 706 62 udpreceive 4444;
+#X obj 707 92 unpackOSC;
+#X obj 706 129 routeOSC /success /fail;
+#X msg 253 121 send /sensors/number 13;
+#X obj 672 189 print success;
+#X obj 810 182 print fail;
+#X obj 162 411 tcpreceive 3333;
+#X obj 188 447 unpackOSCstream;
+#X msg 210 65 send /engines/mode 13 osc.slip.tcp;
+#X msg 242 103 send /engines/dummy/enabled 13 1;
+#X msg 228 83 send /engines/enabled 13 1;
+#X msg 193 46 send /engines/enabled 13 0;
+#X msg 280 165 sendtyped /sensors/group/attributes/1 iffiii 13 0 1
+1 0 0;
+#X msg 264 142 sendtyped /sensors/group/attributes/0 iffiii 13 0 1
+0 1 0;
+#X text 187 12 STEP 2: Configure Chimaera;
+#X text 17 61 STEP 1: Connect to Chimaera;
+#X text 128 385 Receive Chimaera Event Data;
+#X text 681 23 Receive Configuration Replies;
+#X text 686 757 Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch) Released
+under the zlib licence.;
+#X obj 76 624 spray 2;
+#X obj 54 593 pack f f;
+#X text 1 624 x dimension;
+#X text 213 622 z dimension;
+#X obj 143 590 pack f f;
+#X obj 162 621 spray 2;
+#X obj 307 622 spray 2;
+#X text 358 623 gate;
+#X obj 334 591 pack f 0;
+#X obj 268 591 pack f 1;
+#N canvas 1 492 450 300 simplesine 1;
+#X obj 211 151 inlet;
+#X obj 370 149 inlet;
+#X obj 538 150 inlet;
+#X text 201 131 x dimension;
+#X text 365 128 z dimension;
+#X text 539 128 gate;
+#X obj 386 387 outlet~;
+#X obj 229 186 * 32;
+#X obj 215 220 + 34.5;
+#X obj 248 257 mtof;
+#X obj 361 348 *~;
+#X obj 334 196 sig~;
+#X obj 282 303 osc~;
+#X obj 463 237 line~;
+#X obj 407 307 *~;
+#X obj 503 185 pack f 1;
+#X connect 0 0 7 0;
+#X connect 1 0 11 0;
#X connect 2 0 15 0;
-#X connect 2 0 16 0;
-#X connect 2 0 17 0;
-#X connect 11 0 4 0;
-#X connect 12 0 5 0;
-#X connect 13 0 6 0;
-#X connect 14 0 7 0;
-#X connect 15 0 8 0;
-#X connect 16 0 9 0;
-#X connect 17 0 10 0;
-#X connect 18 0 11 1;
-#X connect 19 0 12 1;
-#X connect 20 0 13 1;
-#X connect 21 0 14 1;
-#X connect 22 0 15 1;
-#X connect 23 0 16 1;
-#X connect 24 0 17 1;
-#X connect 25 0 1 0;
-#X connect 25 0 18 0;
-#X connect 25 0 19 0;
-#X connect 25 0 20 0;
-#X connect 25 0 21 0;
-#X connect 25 0 22 0;
-#X connect 25 0 23 0;
-#X connect 25 0 24 0;
-#X restore 253 277 pd mux;
-#N canvas 1 673 466 337 inst 1;
-#X obj 141 210 mtof;
-#X obj 197 320 *~ 0.5;
-#X obj 149 251 phasor~;
-#X obj 199 271 lop~;
-#X obj 190 208 * 100;
-#X obj 147 77 unpack i i i f f f;
-#X obj 144 171 + 35.166;
-#X obj 157 385 outlet~;
-#X obj 147 134 * 42.66;
-#X obj 72 117 inlet;
-#X connect 0 0 2 0;
-#X connect 1 0 7 0;
-#X connect 2 0 3 0;
-#X connect 3 0 1 0;
-#X connect 4 0 3 1;
-#X connect 5 3 8 0;
-#X connect 5 4 1 1;
-#X connect 5 4 4 0;
-#X connect 6 0 0 0;
-#X connect 8 0 6 0;
-#X connect 9 0 5 0;
-#X restore 176 344 pd inst;
-#N canvas 469 673 466 337 inst 1;
-#X obj 141 210 mtof;
-#X obj 197 320 *~ 0.5;
-#X obj 149 251 phasor~;
-#X obj 199 271 lop~;
-#X obj 190 208 * 100;
-#X obj 147 77 unpack i i i f f f;
-#X obj 144 171 + 35.166;
-#X obj 157 385 outlet~;
-#X obj 147 134 * 42.66;
-#X obj 72 117 inlet;
-#X connect 0 0 2 0;
-#X connect 1 0 7 0;
-#X connect 2 0 3 0;
-#X connect 3 0 1 0;
-#X connect 4 0 3 1;
-#X connect 5 3 8 0;
-#X connect 5 4 1 1;
-#X connect 5 4 4 0;
-#X connect 6 0 0 0;
-#X connect 8 0 6 0;
-#X connect 9 0 5 0;
-#X restore 238 342 pd inst;
+#X connect 7 0 8 0;
+#X connect 8 0 9 0;
+#X connect 9 0 12 0;
+#X connect 10 0 6 0;
+#X connect 11 0 14 0;
+#X connect 12 0 10 0;
+#X connect 13 0 14 1;
+#X connect 14 0 10 1;
+#X connect 15 0 13 0;
+#X restore 115 686 pd simplesine;
+#N canvas 1 819 450 300 simplesine 1;
+#X obj 36 26 inlet;
+#X obj 195 24 inlet;
+#X obj 363 25 inlet;
+#X text 26 6 x dimension;
+#X text 190 3 z dimension;
+#X text 364 3 gate;
+#X obj 211 262 outlet~;
+#X obj 54 61 * 32;
+#X obj 40 95 + 34.5;
+#X obj 73 132 mtof;
+#X obj 186 223 *~;
+#X obj 159 71 sig~;
+#X obj 107 178 osc~;
+#X obj 288 112 line~;
+#X obj 232 182 *~;
+#X obj 328 60 pack f 1;
+#X connect 0 0 7 0;
+#X connect 1 0 11 0;
+#X connect 2 0 15 0;
+#X connect 7 0 8 0;
+#X connect 8 0 9 0;
+#X connect 9 0 12 0;
+#X connect 10 0 6 0;
+#X connect 11 0 14 0;
+#X connect 12 0 10 0;
+#X connect 13 0 14 1;
+#X connect 14 0 10 1;
+#X connect 15 0 13 0;
+#X restore 225 685 pd simplesine;
+#X connect 0 1 35 0;
#X connect 1 0 3 0;
-#X connect 1 0 35 0;
#X connect 1 1 3 0;
-#X connect 1 1 35 0;
#X connect 1 2 0 0;
-#X connect 3 0 4 0;
-#X connect 3 1 5 0;
-#X connect 3 1 35 1;
-#X connect 3 2 9 0;
+#X connect 3 1 28 0;
+#X connect 3 1 31 0;
+#X connect 3 1 36 0;
+#X connect 3 3 28 1;
+#X connect 3 4 31 1;
+#X connect 4 0 7 0;
+#X connect 5 0 7 0;
+#X connect 6 0 7 0;
+#X connect 8 0 9 0;
#X connect 9 0 10 0;
-#X connect 14 0 17 0;
-#X connect 15 0 17 0;
-#X connect 16 0 17 0;
-#X connect 18 0 19 0;
-#X connect 19 0 20 0;
-#X connect 20 0 22 0;
-#X connect 20 1 23 0;
-#X connect 21 0 14 0;
-#X connect 25 0 27 0;
-#X connect 25 0 30 0;
-#X connect 27 0 28 0;
-#X connect 28 0 29 0;
-#X connect 29 0 26 0;
-#X connect 30 0 1 0;
-#X connect 31 0 14 0;
-#X connect 32 0 14 0;
-#X connect 33 0 14 0;
-#X connect 34 0 14 0;
-#X connect 35 0 36 0;
-#X connect 35 1 37 0;
-#X connect 36 0 2 0;
-#X connect 37 0 2 1;
+#X connect 10 0 12 0;
+#X connect 10 1 13 0;
+#X connect 11 0 4 0;
+#X connect 14 0 15 0;
+#X connect 15 0 1 0;
+#X connect 16 0 4 0;
+#X connect 17 0 4 0;
+#X connect 18 0 4 0;
+#X connect 19 0 4 0;
+#X connect 20 0 4 0;
+#X connect 21 0 4 0;
+#X connect 27 0 37 0;
+#X connect 27 1 38 0;
+#X connect 28 0 27 0;
+#X connect 31 0 32 0;
+#X connect 32 0 37 1;
+#X connect 32 1 38 1;
+#X connect 33 0 37 2;
+#X connect 33 1 38 2;
+#X connect 35 0 33 0;
+#X connect 36 0 33 0;
+#X connect 37 0 2 0;
+#X connect 38 0 2 1;
diff --git a/test_chimaera_oscmidi.pd b/test_chimaera_oscmidi.pd
new file mode 100644
index 0000000..1df13b5
--- /dev/null
+++ b/test_chimaera_oscmidi.pd
@@ -0,0 +1,91 @@
+#N canvas 487 1 930 554 10;
+#X obj 229 175 packOSC;
+#X msg 92 134 disconnect;
+#X msg 44 114 connect chimaera.local 4444;
+#X obj 178 211 udpsend;
+#X obj 695 326 udpreceive 4444;
+#X obj 722 362 unpackOSC;
+#X obj 697 391 routeOSC /success /fail;
+#X msg 381 207 send /sensors/number 13;
+#X obj 667 429 print success;
+#X obj 799 428 print fail;
+#X obj 382 328 tcpreceive 3333;
+#X obj 412 368 unpackOSCstream;
+#X msg 284 65 send /engines/mode 13 osc.slip.tcp;
+#X msg 304 89 send /engines/enabled 13 1;
+#X msg 269 38 send /engines/enabled 13 0;
+#X msg 324 114 send /engines/oscmidi/enabled 13 1;
+#X obj 382 402 routeOSC /midi;
+#X obj 381 478 midiout;
+#N canvas 1 702 466 428 oscmidi2rawmidi 1;
+#X obj 239 -82 inlet;
+#X obj 138 45 >> 24;
+#X obj 211 45 >> 16;
+#X obj 286 45 >> 8;
+#X obj 303 78 & 127;
+#X obj 386 76 & 127;
+#X obj 165 86 & 15;
+#X obj 234 84 & 240;
+#X obj 365 41 >> 0;
+#X obj 198 126 |;
+#X obj 333 268 outlet;
+#X obj 230 168 pack f f f;
+#X obj 265 -44 listto;
+#X obj 253 206 listto;
+#X obj 461 -82 inlet;
+#X obj 359 241 pipe;
+#X text 211 -107 OSC MIDI 4 bytes;
+#X text 441 -109 OSC Timestamp;
+#X text 311 293 RAW MIDI bytes;
+#X text 165 64 channel;
+#X text 236 64 system;
+#X text 306 61 data 1;
+#X text 388 57 data 2;
+#X connect 0 0 12 0;
+#X connect 1 0 6 0;
+#X connect 2 0 7 0;
+#X connect 3 0 4 0;
+#X connect 4 0 11 1;
+#X connect 5 0 11 2;
+#X connect 6 0 9 0;
+#X connect 7 0 9 1;
+#X connect 8 0 5 0;
+#X connect 9 0 11 0;
+#X connect 11 0 13 0;
+#X connect 12 0 1 0;
+#X connect 12 0 2 0;
+#X connect 12 0 3 0;
+#X connect 12 0 8 0;
+#X connect 13 0 15 0;
+#X connect 14 0 15 1;
+#X connect 15 0 10 0;
+#X restore 400 442 pd oscmidi2rawmidi;
+#X text 42 87 STEP 1: connect to Chimaera;
+#X text 267 11 STEP 2: configure Chimaera;
+#X text 671 293 Configuration replies;
+#X text 360 292 OSCMIDI to RAW MIDI conversion;
+#X msg 355 159 sendtyped /engines/oscmidi/range if 13 32;
+#X msg 340 136 sendtyped /engines/oscmidi/offset if 13 34.5;
+#X msg 368 184 sendtyped /engines/oscmidi/effect ii 13 7;
+#X text 702 511 Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch) Released
+under the zlib license.;
+#X connect 0 0 3 0;
+#X connect 1 0 3 0;
+#X connect 2 0 3 0;
+#X connect 4 0 5 0;
+#X connect 5 0 6 0;
+#X connect 6 0 8 0;
+#X connect 6 1 9 0;
+#X connect 7 0 0 0;
+#X connect 10 0 11 0;
+#X connect 11 0 16 0;
+#X connect 11 1 18 1;
+#X connect 12 0 0 0;
+#X connect 13 0 0 0;
+#X connect 14 0 0 0;
+#X connect 15 0 0 0;
+#X connect 16 0 18 0;
+#X connect 18 0 17 0;
+#X connect 23 0 0 0;
+#X connect 24 0 0 0;
+#X connect 25 0 0 0;