Commit 0f8f0f26 authored by resonance's avatar resonance

osc-in, osc-out, dmx-out

parent 3c12041d
......@@ -24,7 +24,7 @@ Malinette is an all-in-one solution, a rapid prototyping tool to show and make s
- Optional, if you want to use an Arduino, download the Arduino software : http://www.arduino.cc/en/Main/Software. Plug the USB board, install drivers if required, and upload the "StandardFirmata" sketch from the Arduino software : Menu File > Examples > Firmata > StandardFirmata
## Pure Data dependencies
If you have not Pure Data Extended, here you can find our dependencies : creb, initbang, Gem, zexy, cyclone, moonlib, moocow, hcs, tof, comport, iemlib, iemnet or oscx or mrpeach, markex, motex, ggee, list-abs, mapping, pix_fiducialtrack, sigpack, pmpd, purepd
If you have not Pure Data Extended, here you can find our dependencies : creb, initbang, Gem, zexy, cyclone, moonlib, moocow, hcs, tof, comport, iemlib, iemnet or oscx or mrpeach, markex, motex, ggee, list-abs, mapping, pix_fiducialtrack, sigpack, pmpd, purepd, iemguts
You should download them with the new pd.0.47 feature "Find externals" (Deken).
......@@ -50,7 +50,7 @@ Have fun and report feedbacks and bugs at contact_/at/_reso-nance.org.
- ./projects : your projects folders
- MALINETTE.pd : open this patch to start the program (in french)
- preferences.txt : preferences file with global setup (language, level, screen size, project folder)
- README.md
- README.md
## Abstractions
- ./abstractions/audio : audio effects
......
#N canvas 153 77 499 426 10;
#X declare -path ../core;
#X declare -path ../core;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/seq
;
#X obj 29 134 mouse;
#X obj 198 146 arduino-in-num;
#X obj 29 29 cnv 15 160 20 empty empty CLASSIC_INPUTS 10 11 1 9 -261504
-1 0;
#X obj 198 29 cnv 15 100 20 empty empty ARDUINO 20 11 1 9 -261504 -1
0;
#X obj 29 97 audio-in;
#X obj 29 57 video-camera;
#X obj 30 187 key-char;
#X obj 30 227 key-makey;
#N canvas 311 168 602 392 _COLORS_ 0;
#X msg 117 110 40 190 255 0 22;
#X msg 106 90 5 255 237 2 22;
#X msg 93 73 255 159 20 28 0;
#X obj 117 131 gui ../in;
#X msg 79 53 255 215 255 22 22;
#X obj 261 57 declare -path ../core;
#X obj 119 222 outlet;
#X obj 275 157 list-iter;
#X msg 275 135 bng tgl nbx hradio vradio vsl hsl cnv;
#X msg 275 180 \$1 label_font 1 9;
#X obj 268 235 list-iter;
#X msg 269 211 bng tgl nbx hradio vradio vsl hsl cnv;
#X msg 268 258 tgl label_pos 3 6;
#X msg 262 285 bng size 12;
#X msg 266 338 bng label_font 1 9;
#X msg 262 311 bng label_pos 4 7;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 3 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 9 0 6 0;
#X connect 10 0 12 0;
#X connect 11 0 10 0;
#X connect 12 0 6 0;
#X connect 13 0 6 0;
#X connect 14 0 6 0;
#X connect 15 0 6 0;
#X restore 226 335 pd _COLORS_;
#X obj 226 357 universal 1;
#X obj 197 56 arduino-in;
#X obj 30 269 key-num;
#X obj 30 322 joystick 5;
#X obj 348 29 cnv 15 100 20 empty empty MIDI 20 11 1 9 -261504 -1 0
;
#X obj 349 70 notein;
#X obj 349 100 ctlin;
#X obj 349 166 cnv 15 100 20 empty empty OSC 20 11 1 9 -261504 -1 0
;
#N canvas 1 78 850 299 _INCLUDE_ 0;
#X obj 101 101 cnv 8 47 10 empty empty INCLUDE 3 6 1 9 -233017 -260097
0;
#X text 102 52 Import paths to find abstractions \; Always use it in
the examples patchs.;
#X obj 550 92 route savetofile;
#X obj 550 112 unpack s s;
#X obj 550 71 iemguts/receivecanvas 1;
#X obj 550 155 s CURRENT-FILE;
#X obj 617 135 s CURRENT-FOLDER;
#X text 546 49 Get and send the new saved file;
#X obj 102 121 declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/seq
;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 3 1 6 0;
#X connect 4 0 2 0;
#X coords 0 -1 1 1 49 12 2 100 100;
#X restore 29 7 pd _INCLUDE_;
#X obj 349 203 dumpOSC 12001;
#X obj 349 230 OSCroute /v1 /v2;
#X connect 8 0 9 0;
#X connect 18 0 19 0;
#N canvas 151 78 499 426 10;
#X declare -path ../core;
#X declare -path ../core;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/seq
;
#X obj 29 134 mouse;
#X obj 198 146 arduino-in-num;
#X obj 29 29 cnv 15 160 20 empty empty CLASSIC_INPUTS 10 11 1 9 -261504
-1 0;
#X obj 198 29 cnv 15 100 20 empty empty ARDUINO 20 11 1 9 -261504 -1
0;
#X obj 29 97 audio-in;
#X obj 29 57 video-camera;
#X obj 30 187 key-char;
#X obj 30 227 key-makey;
#N canvas 311 168 602 392 _COLORS_ 0;
#X msg 117 110 40 190 255 0 22;
#X msg 106 90 5 255 237 2 22;
#X msg 93 73 255 159 20 28 0;
#X obj 117 131 gui ../in;
#X msg 79 53 255 215 255 22 22;
#X obj 261 57 declare -path ../core;
#X obj 119 222 outlet;
#X obj 275 157 list-iter;
#X msg 275 135 bng tgl nbx hradio vradio vsl hsl cnv;
#X msg 275 180 \$1 label_font 1 9;
#X obj 268 235 list-iter;
#X msg 269 211 bng tgl nbx hradio vradio vsl hsl cnv;
#X msg 268 258 tgl label_pos 3 6;
#X msg 262 285 bng size 12;
#X msg 266 338 bng label_font 1 9;
#X msg 262 311 bng label_pos 4 7;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 3 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 9 0 6 0;
#X connect 10 0 12 0;
#X connect 11 0 10 0;
#X connect 12 0 6 0;
#X connect 13 0 6 0;
#X connect 14 0 6 0;
#X connect 15 0 6 0;
#X restore 226 335 pd _COLORS_;
#X obj 226 357 universal 1;
#X obj 197 56 arduino-in;
#X obj 30 269 key-num;
#X obj 30 322 joystick 5;
#X obj 348 29 cnv 15 100 20 empty empty MIDI 20 11 1 9 -261504 -1 0
;
#X obj 349 70 notein;
#X obj 349 100 ctlin;
#X obj 349 166 cnv 15 100 20 empty empty OSC 20 11 1 9 -261504 -1 0
;
#N canvas 1 78 850 299 _INCLUDE_ 0;
#X obj 101 101 cnv 8 47 10 empty empty INCLUDE 3 6 1 9 -233017 -260097
0;
#X text 102 52 Import paths to find abstractions \; Always use it in
the examples patchs.;
#X obj 550 92 route savetofile;
#X obj 550 112 unpack s s;
#X obj 550 71 iemguts/receivecanvas 1;
#X obj 550 155 s CURRENT-FILE;
#X obj 617 135 s CURRENT-FOLDER;
#X text 546 49 Get and send the new saved file;
#X obj 102 121 declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/seq
;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 3 1 6 0;
#X connect 4 0 2 0;
#X coords 0 -1 1 1 49 12 2 100 100;
#X restore 29 7 pd _INCLUDE_;
#X obj 349 203 dumpOSC 12001;
#X obj 349 230 OSCroute /v1 /v2;
#X obj 349 263 osc-in;
#X connect 8 0 9 0;
#X connect 18 0 19 0;
#N canvas 248 83 616 716 10;
#X declare -lib mrpeach;
#X declare -lib mrpeach;
#X text 59 47 \$1 : port;
#X obj 60 -8 import mrpeach;
#X msg 291 182 connect 127.0.0.1 13000;
#X obj 288 336 tgl 15 0 empty empty connect/disconnect 17 7 0 10 -262144
-1 -1 0 1;
#X msg 292 225 connect localhost 13000;
#X msg 290 283 host 192.168.1.15 9997;
#X text 290 204 = local;
#X text 290 262 when host/port changes;
#X text 290 249 disconnect/reconnect automaticaly;
#X msg 368 357 disconnect;
#X msg 288 357 connect;
#X msg 290 307 port 9997;
#X msg 66 306 /v1 \$1;
#X floatatom 66 282 5 0 0 0 - - -;
#X floatatom 116 282 5 0 0 0 - - -;
#X msg 116 306 /v2 \$1;
#X floatatom 166 282 5 0 0 0 - - -;
#X msg 166 306 /v3 \$1;
#X text 63 262 Data;
#X text 59 72 osc-out \; ------- \; UDP/OSC connection \; Argument
\; int (0-1) disconnect/connect \; Inlets \; 1st: send messages data
\; 2nd:commands;
#X obj 63 565 mrpeach/routeOSC /v1 /v2;
#X obj 63 614 print v1;
#X obj 133 614 print v2;
#X obj 204 615 print other;
#X msg 199 466 port 13000;
#X text 65 446 --------------------;
#X obj 63 468 tgl 15 0 empty empty connect/disconnect 17 7 0 10 -262144
-1 -1 0 1;
#X text 59 14 send/receive OSC messages via UDP connection;
#X text 59 27 with routeOSC;
#X text 315 114 port / connect / disconnect;
#X text 290 101 \$1 : command messages :;
#X obj 64 499 osc-in;
#X text 289 72 osc-in \; ------- \;;
#X obj 66 374 ../out/osc-out;
#X connect 2 0 33 1;
#X connect 3 0 33 1;
#X connect 4 0 33 1;
#X connect 5 0 33 1;
#X connect 9 0 33 1;
#X connect 10 0 33 1;
#X connect 11 0 33 1;
#X connect 12 0 33 0;
#X connect 13 0 12 0;
#X connect 14 0 15 0;
#X connect 15 0 33 0;
#X connect 16 0 17 0;
#X connect 17 0 33 0;
#X connect 20 0 21 0;
#X connect 20 1 22 0;
#X connect 20 2 23 0;
#X connect 24 0 31 0;
#X connect 26 0 31 0;
#X connect 31 0 20 0;
#N canvas 855 311 594 506 10;
#X obj 244 103 inlet;
#X text 240 86 commands;
#X obj 187 104 tgl 10 0 \$0-on \$0-on-in empty 17 7 0 10 -261504 -1
-1 0 1;
#X obj 290 163 s \$0-port-in;
#X obj 244 135 route float port;
#X obj 101 118 cnv 10 98 28 empty empty empty 3 6 0 10 -261504 -1 0
;
#X obj 101 118 cnv 10 10 10 empty empty port 3 6 1 10 -261504 -1 0
;
#X floatatom 101 130 7 0 0 0 - #0-port-in #0-port;
#X obj 113 431 outlet packedOSC;
#X obj 369 180 loadbang;
#X msg 112 290 port \$1;
#X obj 369 205 f \$1;
#X obj 112 363 mrpeach/unpackOSC;
#X obj 112 394 mrpeach/pipelist;
#X obj 255 307 print;
#X obj 112 253 r \$0-port;
#X obj 112 334 mrpeach/udpreceive 9999;
#X obj 441 178 initbang;
#X obj 369 232 sel 0;
#X obj 369 295 s \$0-port-in;
#X msg 369 263 9999;
#X obj 244 191 s \$0-on-in;
#X connect 0 0 4 0;
#X connect 4 0 21 0;
#X connect 4 1 3 0;
#X connect 9 0 11 0;
#X connect 10 0 14 0;
#X connect 10 0 16 0;
#X connect 11 0 10 0;
#X connect 11 0 18 0;
#X connect 12 0 13 0;
#X connect 12 1 13 1;
#X connect 13 0 8 0;
#X connect 15 0 10 0;
#X connect 16 0 12 0;
#X connect 17 0 11 0;
#X connect 18 0 20 0;
#X connect 18 1 19 0;
#X connect 20 0 19 0;
#X coords 0 -1 1 1 100 48 1 100 100;
#N canvas 346 82 531 285 10;
#X declare -path ../core -path ../audio -path ../video;
#X obj 252 162 arduino-out;
#X obj 252 112 midi-out;
#X obj 14 34 cnv 15 140 20 empty empty VIDEO 20 11 0 14 -179879 -1
0;
#X obj 175 34 cnv 15 58 20 empty empty AUDIO 10 11 0 14 -179879 -1
0;
#X obj 254 34 cnv 15 185 20 empty empty DATA 10 11 0 14 -179879 -1
0;
#X text 441 157 [arduino-out];
#X obj 253 65 osc-out;
#X obj 175 65 audio-out;
#X obj 14 162 video-out;
#N canvas 487 408 450 300 _COLORS_ 0;
#X msg 131 21 1 131 255 0 22;
#X msg 124 -2 5 255 237 2 22;
#X msg 111 -19 255 159 20 28 0;
#X obj 111 42 gui ../out;
#X msg 102 -44 157 235 176 12 22;
#X obj 240 128 outlet;
#X obj 322 36 r CNV-out;
#X msg 278 -19 102 255 110 12 22;
#X obj 109 160 declare -path ../core -path ../audio -path ../video
;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 4 0 3 0;
#X restore 429 63 pd _COLORS_;
#X obj 429 86 universal 1;
#X obj 14 65 video-object;
#X obj 14 115 video-text;
#X obj 13 212 video-graph;
#X connect 9 0 10 0;
#N canvas 344 82 558 386 10;
#X declare -path ../core -path ../audio -path ../video;
#X obj 252 167 arduino-out;
#X obj 252 117 midi-out;
#X obj 14 34 cnv 15 140 20 empty empty VIDEO 20 11 0 14 -179879 -1
0;
#X obj 175 34 cnv 15 58 20 empty empty AUDIO 10 11 0 14 -179879 -1
0;
#X obj 254 34 cnv 15 185 20 empty empty DATA 10 11 0 14 -179879 -1
0;
#X text 441 162 [arduino-out];
#X obj 253 65 osc-out;
#X obj 175 65 audio-out;
#X obj 14 162 video-out;
#N canvas 487 408 450 300 _COLORS_ 0;
#X msg 131 21 1 131 255 0 22;
#X msg 124 -2 5 255 237 2 22;
#X msg 111 -19 255 159 20 28 0;
#X obj 111 42 gui ../out;
#X msg 102 -44 157 235 176 12 22;
#X obj 240 128 outlet;
#X obj 322 36 r CNV-out;
#X msg 278 -19 102 255 110 12 22;
#X obj 109 160 declare -path ../core -path ../audio -path ../video
;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 4 0 3 0;
#X restore 429 63 pd _COLORS_;
#X obj 429 86 universal 1;
#X obj 14 65 video-object;
#X obj 14 115 video-text;
#X obj 13 212 video-graph;
#X obj 252 280 dmx-out;
#X connect 9 0 10 0;
#N canvas 156 124 541 373 10;
#X obj 54 271 dmx-out;
#X text 101 198 Message : Address Value;
#X text 161 286 <- view console sliders;
#X obj 57 170 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 4700 1;
#X obj 82 221 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 8100 1;
#X msg 79 248 2 \$1;
#X msg 54 197 1 \$1;
#X text 49 37 dmx-out \; ------- \; Send data to DMX devices \; Arguments:
\$1 : port number (int) \; \$2 : number of sliders in the console (int)
;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#N canvas 1 78 637 337 10;
#X obj 102 120 bng 10 250 50 0 \$0-get-ports \$0-get-ports-in empty
12 5 0 10 -204786 -1 -1;
#X obj 112 120 nbx 4 10 -1e+37 1e+37 0 0 \$0-port \$0-port-in port
0 -5 1 9 -179879 -33289 -1 32 256;
#X obj 96 145 inlet;
#X obj 188 102 tgl 10 0 \$0-on \$0-on-in empty 17 7 0 10 -257985 -1
-1 0 1;
#X obj 187 120 bng 10 250 50 0 \$0-view \$0-view-in view -7 -5 1 9
-204800 -1 -1;
#X obj 151 120 nbx 4 10 -1e+37 1e+37 0 0 \$0-nb \$0-nb-in nb 0 -5 1
9 -179879 -33289 -1 10 256;
#X obj 96 171 s \$0-dmx-in;
#X obj 297 149 initbang;
#X text 296 127 Arguments ////////////;
#X obj 413 63 s \$0-on-in;
#X obj 297 195 f \$1;
#X obj 297 218 sel 0;
#X obj 387 257 s \$0-nb-in;
#X obj 387 210 sel 0;
#X obj 297 171 t b b;
#X obj 387 188 f \$2;
#X obj 296 262 s \$0-port-in;
#X msg 297 239 32;
#X msg 387 234 10;
#N canvas 1 78 450 446 \$0-BUILD-CONSOLE 0;
#X obj 29 161 until;
#X msg 140 349 clear;
#X obj 29 107 f;
#X obj 29 134 t f b b;
#X obj 29 225 t f f;
#X obj 132 125 delay 300;
#X msg 132 147 1;
#X obj 264 129 f \$0;
#X obj 29 366 s pd-\$0-console;
#X obj 132 169 s \$0-on-in;
#X obj 29 81 t b f b;
#X obj 132 98 t b b;
#X msg 164 148 0;
#X obj 29 198 f;
#X obj 61 197 + 1;
#X msg 71 166 0;
#X msg 264 151 \; pd-\$1-console vis 1;
#X obj 29 57 r \$0-nb;
#X obj 264 105 r \$0-view;
#X obj 29 253 * 50;
#X obj 29 300 pack f f \$0;
#N canvas 556 111 592 233 \$0-console 1;
#X obj 50 50 dmx/dmx-slider 1118 1;
#X obj 100 50 dmx/dmx-slider 1118 2;
#X obj 150 50 dmx/dmx-slider 1118 3;
#X obj 200 50 dmx/dmx-slider 1118 4;
#X obj 250 50 dmx/dmx-slider 1118 5;
#X obj 300 50 dmx/dmx-slider 1118 6;
#X obj 350 50 dmx/dmx-slider 1118 7;
#X obj 400 50 dmx/dmx-slider 1118 8;
#X obj 450 50 dmx/dmx-slider 1118 9;
#X obj 500 50 dmx/dmx-slider 1118 10;
#X restore 237 370 pd \$0-console;
#X obj 29 277 + 50;
#X obj 71 274 + 1;
#X msg 29 327 obj \$1 50 dmx/dmx-slider \$3 \$2;
#X text 26 33 Build Console with [dmx-slider] /////////////////;
#X text 186 371 >>>>;
#X connect 0 0 13 0;
#X connect 1 0 8 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 3 1 15 0;
#X connect 3 2 1 0;
#X connect 4 0 19 0;
#X connect 4 1 23 0;
#X connect 5 0 6 0;
#X connect 6 0 9 0;
#X connect 7 0 16 0;
#X connect 10 0 2 0;
#X connect 10 1 2 1;
#X connect 11 0 5 0;
#X connect 12 0 9 0;
#X connect 13 0 4 0;
#X connect 13 0 14 0;
#X connect 14 0 13 1;
#X connect 15 0 13 1;
#X connect 17 0 10 0;
#X connect 18 0 7 0;
#X connect 19 0 22 0;
#X connect 20 0 24 0;
#X connect 22 0 20 0;
#X connect 23 0 20 1;
#X connect 24 0 8 0;
#X restore 94 238 pd \$0-BUILD-CONSOLE;
#N canvas 1 78 606 447 \$0-COMMUNICATION 0;
#X msg 128 264 ports;
#X msg 109 202 open \$1;
#X obj 176 346 route ports;
#X obj 109 319 comport 32;
#X obj 297 161 list-replace;
#X obj 400 178 l;
#X obj 297 197 resample 25;
#X obj 297 276 spigot;
#X obj 336 230 r \$0-on;
#X obj 128 240 r \$0-get-ports;
#X obj 127 154 r \$0-port;
#X obj 364 120 + 4;
#X msg 37 212 close;
#X obj 297 63 r \$0-dmx-out;
#X obj 37 137 r \$0-on;
#X obj 37 162 sel 0 1;
#X obj 109 179 f;
#X text 32 107 Communication ///////////////////;
#X obj 297 91 unpack f f;
#X obj 176 375 print Ports;
#X text 293 34 Send Values /////////////////;
#X obj 336 251 pipe 1;
#X text 381 196 DMX stream is at 40 Hz;
#N canvas 342 324 846 407 \$0-DMX-list 0;
#X obj 234 215 l;
#X obj 114 85 t b b b;
#X obj 137 198 list append;
#X msg 236 125 231;
#X obj 137 129 until;
#X msg 137 163 0;
#X msg 38 126 126 6 1 2;
#X obj 136 319 outlet;
#X obj 114 58 loadbang;
#X msg 137 106 513;
#X msg 350 36 126 6 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 231;
#X connect 0 0 2 1;
#X connect 1 0 6 0;
#X connect 1 1 9 0;
#X connect 1 2 3 0;
#X connect 2 0 0 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 2 0;
#X connect 6 0 2 0;
#X connect 8 0 1 0;
#X connect 8 0 10 0;
#X connect 9 0 4 0;
#X connect 10 0 7 0;
#X restore 378 141 pd \$0-DMX-list;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 19 0;
#X connect 3 1 2 0;
#X connect 4 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 4 2;
#X connect 6 0 7 0;
#X connect 7 0 3 0;
#X connect 8 0 21 0;
#X connect 9 0 0 0;
#X connect 10 0 16 1;
#X connect 11 0 4 1;
#X connect 12 0 3 0;
#X connect 13 0 18 0;
#X connect 14 0 15 0;
#X connect 15 0 12 0;
#X connect 15 1 16 0;
#X connect 16 0 1 0;
#X connect 18 0 4 0;
#X connect 18 1 11 0;
#X connect 21 0 7 1;
#X connect 23 0 4 2;
#X restore 94 259 pd \$0-COMMUNICATION;
#X text 295 44 ? Default port for ENTTEC PRO USB = 32 ?;
#X text 295 62 ? Activation ?;
#X connect 2 0 6 0;
#X connect 7 0 14 0;
#X connect 10 0 11 0;
#X connect 11 0 17 0;
#X connect 11 1 16 0;
#X connect 13 0 18 0;
#X connect 13 1 12 0;
#X connect 14 0 10 0;
#X connect 14 1 15 0;
#X connect 15 0 13 0;
#X connect 17 0 16 0;
#X connect 18 0 12 0;
#X coords 0 -1 1 1 100 30 1 100 100;
#N canvas 156 124 541 373 10;
#X obj 54 271 dmx-out;
#X text 101 198 Message : Address Value;
#X text 161 286 <- view console sliders;
#X obj 57 170 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 4700 1;
#X obj 82 221 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 8100 1;
#X msg 79 248 2 \$1;
#X msg 54 197 1 \$1;
#X text 49 37 dmx-out \; ------- \; Send data to DMX devices \; Arguments:
\$1 : port number (int) \; \$2 : number of sliders in the console (int)
;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#N canvas 675 112 465 421 10;
#X text 65 256 --------------------;
#X obj 66 184 dmx-out;
#X text 69 24 send DMX messages;
#X text 69 37 via comport;
#X text 68 81 connection :;
#X text 68 100 1 - report correct adresses & ports nb (Qlight / QLC+
/…);
#X text 68 120 2 - create [s dmx] objects with port nb as argument
\$1;
#X floatatom 69 297 5 0 0 0 - - -;
#X obj 69 347 s dmx2;
#X obj 118 348 s dmx7;
#X connect 7 0 8 0;
#X connect 7 0 9 0;
#N canvas 1 78 637 337 10;
#X obj 102 120 bng 10 250 50 0 \$0-get-ports \$0-get-ports-in empty
12 5 0 10 -204786 -1 -1;
#X obj 112 120 nbx 4 10 -1e+37 1e+37 0 0 \$0-port \$0-port-in port
0 -5 1 9 -179879 -33289 -1 32 256;
#X obj 96 145 inlet;
#X obj 188 102 tgl 10 0 \$0-on \$0-on-in empty 17 7 0 10 -257985 -1
-1 0 1;
#X obj 187 120 bng 10 250 50 0 \$0-view \$0-view-in view -7 -5 1 9
-204800 -1 -1;
#X obj 151 120 nbx 4 10 -1e+37 1e+37 0 0 \$0-nb \$0-nb-in nb 0 -5 1
9 -179879 -33289 -1 10 256;
#X obj 96 171 s \$0-dmx-in;
#X obj 297 149 initbang;
#X text 296 127 Arguments ////////////;
#X obj 413 63 s \$0-on-in;
#X obj 297 195 f \$1;
#X obj 297 218 sel 0;
#X obj 387 257 s \$0-nb-in;
#X obj 387 210 sel 0;
#X obj 297 171 t b b;
#X obj 387 188 f \$2;
#X obj 296 262 s \$0-port-in;
#X msg 297 239 32;
#X msg 387 234 10;
#N canvas 1 78 450 446 \$0-BUILD-CONSOLE 0;
#X obj 29 161 until;
#X msg 140 349 clear;
#X obj 29 107 f;
#X obj 29 134 t f b b;
#X obj 29 225 t f f;
#X obj 132 125 delay 300;
#X msg 132 147 1;
#X obj 264 129 f \$0;
#X obj 29 366 s pd-\$0-console;
#X obj 132 169 s \$0-on-in;
#X obj 29 81 t b f b;
#X obj 132 98 t b b;
#X msg 164 148 0;
#X obj 29 198 f;
#X obj 61 197 + 1;
#X msg 71 166 0;
#X msg 264 151 \; pd-\$1-console vis 1;
#X obj 29 57 r \$0-nb;
#X obj 264 105 r \$0-view;
#X obj 29 253 * 50;
#X obj 29 300 pack f f \$0;
#N canvas 556 111 592 233 \$0-console 1;
#X obj 50 50 dmx/dmx-slider 1118 1;
#X obj 100 50 dmx/dmx-slider 1118 2;
#X obj 150 50 dmx/dmx-slider 1118 3;
#X obj 200 50 dmx/dmx-slider 1118 4;
#X obj 250 50 dmx/dmx-slider 1118 5;
#X obj 300 50 dmx/dmx-slider 1118 6;
#X obj 350 50 dmx/dmx-slider 1118 7;
#X obj 400 50 dmx/dmx-slider 1118 8;
#X obj 450 50 dmx/dmx-slider 1118 9;
#X obj 500 50 dmx/dmx-slider 1118 10;
#X restore 237 370 pd \$0-console;
#X obj 29 277 + 50;
#X obj 71 274 + 1;
#X msg 29 327 obj \$1 50 dmx/dmx-slider \$3 \$2;
#X text 26 33 Build Console with [dmx-slider] /////////////////;
#X text 186 371 >>>>;
#X connect 0 0 13 0;
#X connect 1 0 8 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 3 1 15 0;
#X connect 3 2 1 0;
#X connect 4 0 19 0;
#X connect 4 1 23 0;
#X connect 5 0 6 0;
#X connect 6 0 9 0;
#X connect 7 0 16 0;
#X connect 10 0 2 0;
#X connect 10 1 2 1;
#X connect 11 0 5 0;
#X connect 12 0 9 0;
#X connect 13 0 4 0;
#X connect 13 0 14 0;
#X connect 14 0 13 1;
#X connect 15 0 13 1;
#X connect 17 0 10 0;
#X connect 18 0 7 0;
#X connect 19 0 22 0;
#X connect 20 0 24 0;
#X connect 22 0 20 0;
#X connect 23 0 20 1;
#X connect 24 0 8 0;
#X restore 94 238 pd \$0-BUILD-CONSOLE;
#N canvas 1 78 606 447 \$0-COMMUNICATION 0;
#X msg 128 264 ports;
#X msg 109 202 open \$1;
#X obj 176 346 route ports;
#X obj 109 319 comport 32;
#X obj 297 161 list-replace;
#X obj 400 178 l;
#X obj 297 197 resample 25;
#X obj 297 276 spigot;
#X obj 336 230 r \$0-on;
#X obj 128 240 r \$0-get-ports;
#X obj 127 154 r \$0-port;
#X obj 364 120 + 4;
#X msg 37 212 close;
#X obj 297 63 r \$0-dmx-out;
#X obj 37 137 r \$0-on;
#X obj 37 162 sel 0 1;
#X obj 109 179 f;
#X text 32 107 Communication ///////////////////;
#X obj 297 91 unpack f f;
#X obj 176 375 print Ports;
#X text 293 34 Send Values /////////////////;
#X obj 336 251 pipe 1;
#X text 381 196 DMX stream is at 40 Hz;
#N canvas 342 324 846 407 \$0-DMX-list 0;
#N canvas 321 190 556 356 10;
#X obj 101 116 cnv 10 118 30 empty empty empty 3 6 0 10 -179879 -1
0;
#X msg -96 184 ports;
#X msg -115 135 open \$1;
#X obj -115 76 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#N canvas 517 181 457 631 Construction 0;
#X obj -90 357 until;
#X obj -90 394 counter;
#X msg 146 544 clear;
#X obj -90 459 * 80;
#X obj -90 561 s pd-Console;
#X obj -90 283 f;
#X obj -90 330 t f b b;
#X obj -90 431 t f f;
#X obj -90 490 pack f f;
#X obj -45 448 + 1;
#X obj -208 52 list-replace;
#N canvas 564 469 341 328 list-creation 0;
#X obj 234 215 l;
#X obj 114 85 t b b b;
#X obj 118 -15 t b b b;
#X obj 137 198 list append;
#X msg 236 125 231;
#X obj 137 129 until;
#X msg 137 163 0;
#X msg 38 126 126 6 1 2;
#X obj 136 319 outlet;
#X obj 114 58 loadbang;
#X msg 137 106 513;
#X msg 350 36 126 6 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0