├── DMXUSBPro.maxhelp ├── DMXUSBPro.maxpat └── README.md /DMXUSBPro.maxhelp: -------------------------------------------------------------------------------- 1 | { 2 | "patcher" : { 3 | "fileversion" : 1, 4 | "appversion" : { 5 | "major" : 8, 6 | "minor" : 1, 7 | "revision" : 11, 8 | "architecture" : "x64", 9 | "modernui" : 1 10 | } 11 | , 12 | "classnamespace" : "box", 13 | "rect" : [ 42.0, 85.0, 1258.0, 845.0 ], 14 | "bglocked" : 0, 15 | "openinpresentation" : 0, 16 | "default_fontsize" : 12.0, 17 | "default_fontface" : 0, 18 | "default_fontname" : "Arial", 19 | "gridonopen" : 1, 20 | "gridsize" : [ 15.0, 15.0 ], 21 | "gridsnaponopen" : 1, 22 | "objectsnaponopen" : 1, 23 | "statusbarvisible" : 2, 24 | "toolbarvisible" : 1, 25 | "lefttoolbarpinned" : 0, 26 | "toptoolbarpinned" : 0, 27 | "righttoolbarpinned" : 0, 28 | "bottomtoolbarpinned" : 0, 29 | "toolbars_unpinned_last_save" : 0, 30 | "tallnewobj" : 0, 31 | "boxanimatetime" : 200, 32 | "enablehscroll" : 1, 33 | "enablevscroll" : 1, 34 | "devicewidth" : 0.0, 35 | "description" : "", 36 | "digest" : "", 37 | "tags" : "", 38 | "style" : "", 39 | "subpatcher_template" : "", 40 | "assistshowspatchername" : 0, 41 | "boxes" : [ { 42 | "box" : { 43 | "bgcolor" : [ 0.278431, 0.921569, 0.639216, 1.0 ], 44 | "fontname" : "Arial", 45 | "fontsize" : 12.0, 46 | "id" : "obj-35", 47 | "maxclass" : "comment", 48 | "numinlets" : 1, 49 | "numoutlets" : 0, 50 | "patching_rect" : [ 127.0, 692.0, 402.0, 20.0 ], 51 | "text" : "DMXUSBPro takes an argument : the initial serial port to open " 52 | } 53 | 54 | } 55 | , { 56 | "box" : { 57 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 58 | "fontface" : 1, 59 | "fontname" : "Arial", 60 | "fontsize" : 12.0, 61 | "id" : "obj-34", 62 | "maxclass" : "comment", 63 | "numinlets" : 1, 64 | "numoutlets" : 0, 65 | "patching_rect" : [ 104.0, 692.0, 25.0, 20.0 ], 66 | "text" : "1.3", 67 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 68 | "textjustification" : 1 69 | } 70 | 71 | } 72 | , { 73 | "box" : { 74 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 75 | "fontface" : 1, 76 | "fontname" : "Arial", 77 | "fontsize" : 12.0, 78 | "id" : "obj-32", 79 | "maxclass" : "comment", 80 | "numinlets" : 1, 81 | "numoutlets" : 0, 82 | "patching_rect" : [ 171.0, 588.0, 25.0, 20.0 ], 83 | "text" : "3", 84 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 85 | "textjustification" : 1 86 | } 87 | 88 | } 89 | , { 90 | "box" : { 91 | "bgcolor" : [ 1.0, 0.76078431372549, 0.905882352941176, 1.0 ], 92 | "fontname" : "Arial", 93 | "fontsize" : 12.0, 94 | "id" : "obj-33", 95 | "maxclass" : "comment", 96 | "numinlets" : 1, 97 | "numoutlets" : 0, 98 | "patching_rect" : [ 194.0, 588.0, 382.0, 20.0 ], 99 | "text" : "Close the serial port once you are done" 100 | } 101 | 102 | } 103 | , { 104 | "box" : { 105 | "id" : "obj-30", 106 | "linecount" : 2, 107 | "maxclass" : "comment", 108 | "numinlets" : 1, 109 | "numoutlets" : 0, 110 | "patching_rect" : [ 772.0, 441.5, 225.0, 34.0 ], 111 | "text" : "Toggle the bpatcher to the left to generate random data." 112 | } 113 | 114 | } 115 | , { 116 | "box" : { 117 | "id" : "obj-27", 118 | "maxclass" : "comment", 119 | "numinlets" : 1, 120 | "numoutlets" : 0, 121 | "patching_rect" : [ 183.0, 549.0, 405.0, 20.0 ], 122 | "text" : "This multislider outputs lists of 512 values. " 123 | } 124 | 125 | } 126 | , { 127 | "box" : { 128 | "bgcolor" : [ 0.960784, 0.827451, 0.156863, 1.0 ], 129 | "fontname" : "Arial", 130 | "fontsize" : 12.0, 131 | "id" : "obj-20", 132 | "maxclass" : "comment", 133 | "numinlets" : 1, 134 | "numoutlets" : 0, 135 | "patching_rect" : [ 623.0, 419.5, 374.0, 20.0 ], 136 | "text" : "Random data" 137 | } 138 | 139 | } 140 | , { 141 | "box" : { 142 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 143 | "fontface" : 1, 144 | "fontname" : "Arial", 145 | "fontsize" : 12.0, 146 | "id" : "obj-21", 147 | "maxclass" : "comment", 148 | "numinlets" : 1, 149 | "numoutlets" : 0, 150 | "patching_rect" : [ 596.0, 419.5, 25.0, 20.0 ], 151 | "text" : "2.3", 152 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 153 | "textjustification" : 1 154 | } 155 | 156 | } 157 | , { 158 | "box" : { 159 | "bgcolor" : [ 0.960784, 0.827451, 0.156863, 1.0 ], 160 | "fontname" : "Arial", 161 | "fontsize" : 12.0, 162 | "id" : "obj-18", 163 | "maxclass" : "comment", 164 | "numinlets" : 1, 165 | "numoutlets" : 0, 166 | "patching_rect" : [ 202.0, 419.5, 374.0, 20.0 ], 167 | "text" : "Using a multislider" 168 | } 169 | 170 | } 171 | , { 172 | "box" : { 173 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 174 | "fontface" : 1, 175 | "fontname" : "Arial", 176 | "fontsize" : 12.0, 177 | "id" : "obj-17", 178 | "maxclass" : "comment", 179 | "numinlets" : 1, 180 | "numoutlets" : 0, 181 | "patching_rect" : [ 175.0, 419.5, 25.0, 20.0 ], 182 | "text" : "2.2", 183 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 184 | "textjustification" : 1 185 | } 186 | 187 | } 188 | , { 189 | "box" : { 190 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 191 | "fontface" : 1, 192 | "fontname" : "Arial", 193 | "fontsize" : 12.0, 194 | "id" : "obj-16", 195 | "maxclass" : "comment", 196 | "numinlets" : 1, 197 | "numoutlets" : 0, 198 | "patching_rect" : [ 145.0, 282.5, 25.0, 20.0 ], 199 | "text" : "2.1", 200 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 201 | "textjustification" : 1 202 | } 203 | 204 | } 205 | , { 206 | "box" : { 207 | "bgcolor" : [ 0.960784, 0.827451, 0.156863, 1.0 ], 208 | "fontname" : "Arial", 209 | "fontsize" : 12.0, 210 | "id" : "obj-15", 211 | "maxclass" : "comment", 212 | "numinlets" : 1, 213 | "numoutlets" : 0, 214 | "patching_rect" : [ 171.0, 282.5, 374.0, 20.0 ], 215 | "text" : "Setting 4 channels" 216 | } 217 | 218 | } 219 | , { 220 | "box" : { 221 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 222 | "fontface" : 1, 223 | "fontname" : "Arial", 224 | "fontsize" : 12.0, 225 | "id" : "obj-14", 226 | "maxclass" : "comment", 227 | "numinlets" : 1, 228 | "numoutlets" : 0, 229 | "patching_rect" : [ 145.0, 199.5, 25.0, 20.0 ], 230 | "text" : "2", 231 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 232 | "textjustification" : 1 233 | } 234 | 235 | } 236 | , { 237 | "box" : { 238 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 239 | "fontface" : 1, 240 | "fontname" : "Arial", 241 | "fontsize" : 12.0, 242 | "id" : "obj-12", 243 | "maxclass" : "comment", 244 | "numinlets" : 1, 245 | "numoutlets" : 0, 246 | "patching_rect" : [ 152.0, 135.0, 25.0, 20.0 ], 247 | "text" : "1.2", 248 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 249 | "textjustification" : 1 250 | } 251 | 252 | } 253 | , { 254 | "box" : { 255 | "bgcolor" : [ 0.278431, 0.921569, 0.639216, 1.0 ], 256 | "fontname" : "Arial", 257 | "fontsize" : 12.0, 258 | "id" : "obj-13", 259 | "maxclass" : "comment", 260 | "numinlets" : 1, 261 | "numoutlets" : 0, 262 | "patching_rect" : [ 175.0, 135.0, 402.0, 20.0 ], 263 | "text" : "Use the \"port\" message to open the selected port" 264 | } 265 | 266 | } 267 | , { 268 | "box" : { 269 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 270 | "fontface" : 1, 271 | "fontname" : "Arial", 272 | "fontsize" : 12.0, 273 | "id" : "obj-7", 274 | "maxclass" : "comment", 275 | "numinlets" : 1, 276 | "numoutlets" : 0, 277 | "patching_rect" : [ 47.0, 74.0, 25.0, 20.0 ], 278 | "text" : "1.1", 279 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 280 | "textjustification" : 1 281 | } 282 | 283 | } 284 | , { 285 | "box" : { 286 | "bgcolor" : [ 0.278431, 0.921569, 0.639216, 1.0 ], 287 | "fontname" : "Arial", 288 | "fontsize" : 12.0, 289 | "id" : "obj-8", 290 | "maxclass" : "comment", 291 | "numinlets" : 1, 292 | "numoutlets" : 0, 293 | "patching_rect" : [ 70.0, 74.0, 318.0, 20.0 ], 294 | "presentation_linecount" : 2, 295 | "text" : "\"print\" prints the available ports in the message window" 296 | } 297 | 298 | } 299 | , { 300 | "box" : { 301 | "bgcolor" : [ 0.92156862745098, 0.27843137254902, 0.901960784313726, 1.0 ], 302 | "fontface" : 1, 303 | "fontname" : "Arial", 304 | "fontsize" : 12.0, 305 | "id" : "obj-6", 306 | "maxclass" : "comment", 307 | "numinlets" : 1, 308 | "numoutlets" : 0, 309 | "patching_rect" : [ 9.0, 35.0, 25.0, 20.0 ], 310 | "text" : "1", 311 | "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], 312 | "textjustification" : 1 313 | } 314 | 315 | } 316 | , { 317 | "box" : { 318 | "bgcolor" : [ 0.96078431372549, 0.827450980392157, 0.156862745098039, 0.0 ], 319 | "fontname" : "Arial", 320 | "fontsize" : 12.0, 321 | "id" : "obj-2", 322 | "linecount" : 5, 323 | "maxclass" : "comment", 324 | "numinlets" : 0, 325 | "numoutlets" : 0, 326 | "patching_rect" : [ 145.0, 304.5, 157.0, 75.0 ], 327 | "presentation_linecount" : 5, 328 | "suppressinlet" : 1, 329 | "text" : "In example below we set :\nchannel 1 to 187\nchannel 2 to 0\nchannel 3 to 45\nchannel 4 to 255" 330 | } 331 | 332 | } 333 | , { 334 | "box" : { 335 | "id" : "obj-47", 336 | "linecount" : 2, 337 | "maxclass" : "comment", 338 | "numinlets" : 1, 339 | "numoutlets" : 0, 340 | "patching_rect" : [ 171.0, 441.5, 405.0, 34.0 ], 341 | "text" : "You can use a multislider as an interface. Draw the mouse on the multislider below." 342 | } 343 | 344 | } 345 | , { 346 | "box" : { 347 | "bgmode" : 0, 348 | "border" : 0, 349 | "clickthrough" : 0, 350 | "embed" : 1, 351 | "enablehscroll" : 0, 352 | "enablevscroll" : 0, 353 | "id" : "obj-44", 354 | "lockeddragscroll" : 0, 355 | "maxclass" : "bpatcher", 356 | "numinlets" : 0, 357 | "numoutlets" : 1, 358 | "offset" : [ 0.0, 0.0 ], 359 | "outlettype" : [ "" ], 360 | "patcher" : { 361 | "fileversion" : 1, 362 | "appversion" : { 363 | "major" : 8, 364 | "minor" : 1, 365 | "revision" : 11, 366 | "architecture" : "x64", 367 | "modernui" : 1 368 | } 369 | , 370 | "classnamespace" : "box", 371 | "rect" : [ 2111.0, 85.0, 976.0, 939.0 ], 372 | "bglocked" : 0, 373 | "openinpresentation" : 1, 374 | "default_fontsize" : 12.0, 375 | "default_fontface" : 0, 376 | "default_fontname" : "Arial", 377 | "gridonopen" : 1, 378 | "gridsize" : [ 15.0, 15.0 ], 379 | "gridsnaponopen" : 1, 380 | "objectsnaponopen" : 1, 381 | "statusbarvisible" : 2, 382 | "toolbarvisible" : 1, 383 | "lefttoolbarpinned" : 0, 384 | "toptoolbarpinned" : 0, 385 | "righttoolbarpinned" : 0, 386 | "bottomtoolbarpinned" : 0, 387 | "toolbars_unpinned_last_save" : 0, 388 | "tallnewobj" : 0, 389 | "boxanimatetime" : 200, 390 | "enablehscroll" : 1, 391 | "enablevscroll" : 1, 392 | "devicewidth" : 0.0, 393 | "description" : "", 394 | "digest" : "", 395 | "tags" : "", 396 | "style" : "", 397 | "subpatcher_template" : "", 398 | "assistshowspatchername" : 0, 399 | "boxes" : [ { 400 | "box" : { 401 | "comment" : "", 402 | "id" : "obj-3", 403 | "index" : 1, 404 | "maxclass" : "outlet", 405 | "numinlets" : 1, 406 | "numoutlets" : 0, 407 | "patching_rect" : [ 143.0, 235.0, 30.0, 30.0 ] 408 | } 409 | 410 | } 411 | , { 412 | "box" : { 413 | "fontname" : "Arial", 414 | "fontsize" : 12.0, 415 | "id" : "obj-19", 416 | "maxclass" : "comment", 417 | "numinlets" : 1, 418 | "numoutlets" : 0, 419 | "patching_rect" : [ 69.0, 33.0, 246.0, 20.0 ], 420 | "presentation" : 1, 421 | "presentation_rect" : [ 35.0, 10.0, 137.0, 20.0 ], 422 | "text" : "Generate random data" 423 | } 424 | 425 | } 426 | , { 427 | "box" : { 428 | "id" : "obj-16", 429 | "maxclass" : "toggle", 430 | "numinlets" : 1, 431 | "numoutlets" : 1, 432 | "outlettype" : [ "int" ], 433 | "parameter_enable" : 0, 434 | "patching_rect" : [ 49.0, 33.0, 20.0, 20.0 ], 435 | "presentation" : 1, 436 | "presentation_rect" : [ 9.0, 8.0, 24.0, 24.0 ] 437 | } 438 | 439 | } 440 | , { 441 | "box" : { 442 | "fontname" : "Arial", 443 | "fontsize" : 12.0, 444 | "id" : "obj-14", 445 | "maxclass" : "newobj", 446 | "numinlets" : 1, 447 | "numoutlets" : 2, 448 | "outlettype" : [ "", "bang" ], 449 | "patcher" : { 450 | "fileversion" : 1, 451 | "appversion" : { 452 | "major" : 8, 453 | "minor" : 1, 454 | "revision" : 11, 455 | "architecture" : "x64", 456 | "modernui" : 1 457 | } 458 | , 459 | "classnamespace" : "box", 460 | "rect" : [ 458.0, 137.0, 1100.0, 614.0 ], 461 | "bglocked" : 0, 462 | "openinpresentation" : 0, 463 | "default_fontsize" : 12.0, 464 | "default_fontface" : 0, 465 | "default_fontname" : "Arial", 466 | "gridonopen" : 1, 467 | "gridsize" : [ 15.0, 15.0 ], 468 | "gridsnaponopen" : 1, 469 | "objectsnaponopen" : 1, 470 | "statusbarvisible" : 2, 471 | "toolbarvisible" : 1, 472 | "lefttoolbarpinned" : 0, 473 | "toptoolbarpinned" : 0, 474 | "righttoolbarpinned" : 0, 475 | "bottomtoolbarpinned" : 0, 476 | "toolbars_unpinned_last_save" : 0, 477 | "tallnewobj" : 0, 478 | "boxanimatetime" : 200, 479 | "enablehscroll" : 1, 480 | "enablevscroll" : 1, 481 | "devicewidth" : 0.0, 482 | "description" : "", 483 | "digest" : "", 484 | "tags" : "", 485 | "style" : "", 486 | "subpatcher_template" : "", 487 | "assistshowspatchername" : 0, 488 | "boxes" : [ { 489 | "box" : { 490 | "comment" : "", 491 | "id" : "obj-5", 492 | "index" : 2, 493 | "maxclass" : "outlet", 494 | "numinlets" : 1, 495 | "numoutlets" : 0, 496 | "patching_rect" : [ 1011.0, 308.0, 30.0, 30.0 ] 497 | } 498 | 499 | } 500 | , { 501 | "box" : { 502 | "fontname" : "Arial", 503 | "fontsize" : 12.0, 504 | "id" : "obj-32", 505 | "maxclass" : "newobj", 506 | "numinlets" : 1, 507 | "numoutlets" : 2, 508 | "outlettype" : [ "bang", "bang" ], 509 | "patching_rect" : [ 510.0, 345.0, 34.0, 22.0 ], 510 | "text" : "t b b" 511 | } 512 | 513 | } 514 | , { 515 | "box" : { 516 | "fontname" : "Arial", 517 | "fontsize" : 12.0, 518 | "id" : "obj-31", 519 | "maxclass" : "newobj", 520 | "numinlets" : 1, 521 | "numoutlets" : 2, 522 | "outlettype" : [ "jit_matrix", "" ], 523 | "patching_rect" : [ 840.0, 375.0, 55.0, 22.0 ], 524 | "text" : "jit.matrix" 525 | } 526 | 527 | } 528 | , { 529 | "box" : { 530 | "fontname" : "Arial", 531 | "fontsize" : 12.0, 532 | "id" : "obj-30", 533 | "maxclass" : "newobj", 534 | "numinlets" : 1, 535 | "numoutlets" : 2, 536 | "outlettype" : [ "jit_matrix", "" ], 537 | "patching_rect" : [ 840.0, 405.0, 216.0, 22.0 ], 538 | "text" : "jit.slide @slide_down 10 @slide_up 10" 539 | } 540 | 541 | } 542 | , { 543 | "box" : { 544 | "fontname" : "Arial", 545 | "fontsize" : 12.0, 546 | "id" : "obj-28", 547 | "maxclass" : "newobj", 548 | "numinlets" : 2, 549 | "numoutlets" : 2, 550 | "outlettype" : [ "jit_matrix", "" ], 551 | "patching_rect" : [ 1020.0, 240.0, 85.0, 22.0 ], 552 | "text" : "jit.op @op xor" 553 | } 554 | 555 | } 556 | , { 557 | "box" : { 558 | "id" : "obj-27", 559 | "maxclass" : "jit.pwindow", 560 | "numinlets" : 1, 561 | "numoutlets" : 2, 562 | "outlettype" : [ "jit_matrix", "" ], 563 | "patching_rect" : [ 840.0, 495.0, 345.0, 210.0 ] 564 | } 565 | 566 | } 567 | , { 568 | "box" : { 569 | "fontname" : "Arial", 570 | "fontsize" : 12.0, 571 | "id" : "obj-26", 572 | "maxclass" : "newobj", 573 | "numinlets" : 2, 574 | "numoutlets" : 2, 575 | "outlettype" : [ "jit_matrix", "" ], 576 | "patching_rect" : [ 840.0, 435.0, 126.0, 22.0 ], 577 | "text" : "jit.op @op > @val 0.5" 578 | } 579 | 580 | } 581 | , { 582 | "box" : { 583 | "fontname" : "Arial", 584 | "fontsize" : 12.0, 585 | "id" : "obj-25", 586 | "maxclass" : "newobj", 587 | "numinlets" : 2, 588 | "numoutlets" : 1, 589 | "outlettype" : [ "bang" ], 590 | "patching_rect" : [ 840.0, 225.0, 71.0, 22.0 ], 591 | "text" : "metro 1000" 592 | } 593 | 594 | } 595 | , { 596 | "box" : { 597 | "fontname" : "Arial", 598 | "fontsize" : 12.0, 599 | "id" : "obj-20", 600 | "maxclass" : "newobj", 601 | "numinlets" : 1, 602 | "numoutlets" : 2, 603 | "outlettype" : [ "jit_matrix", "" ], 604 | "patching_rect" : [ 480.0, 420.0, 55.0, 22.0 ], 605 | "text" : "jit.matrix" 606 | } 607 | 608 | } 609 | , { 610 | "box" : { 611 | "fontname" : "Arial", 612 | "fontsize" : 12.0, 613 | "id" : "obj-17", 614 | "maxclass" : "newobj", 615 | "numinlets" : 1, 616 | "numoutlets" : 2, 617 | "outlettype" : [ "jit_matrix", "" ], 618 | "patching_rect" : [ 480.0, 450.0, 216.0, 22.0 ], 619 | "text" : "jit.slide @slide_down 50 @slide_up 50" 620 | } 621 | 622 | } 623 | , { 624 | "box" : { 625 | "id" : "obj-16", 626 | "maxclass" : "button", 627 | "numinlets" : 1, 628 | "numoutlets" : 1, 629 | "outlettype" : [ "bang" ], 630 | "parameter_enable" : 0, 631 | "patching_rect" : [ 840.0, 285.0, 20.0, 20.0 ] 632 | } 633 | 634 | } 635 | , { 636 | "box" : { 637 | "fontname" : "Arial", 638 | "fontsize" : 12.0, 639 | "id" : "obj-10", 640 | "maxclass" : "newobj", 641 | "numinlets" : 1, 642 | "numoutlets" : 2, 643 | "outlettype" : [ "jit_matrix", "" ], 644 | "patching_rect" : [ 840.0, 330.0, 111.0, 22.0 ], 645 | "text" : "jit.noise 1 char 128" 646 | } 647 | 648 | } 649 | , { 650 | "box" : { 651 | "id" : "obj-2", 652 | "maxclass" : "jit.pwindow", 653 | "numinlets" : 1, 654 | "numoutlets" : 2, 655 | "outlettype" : [ "jit_matrix", "" ], 656 | "patching_rect" : [ 480.0, 495.0, 345.0, 210.0 ] 657 | } 658 | 659 | } 660 | , { 661 | "box" : { 662 | "fontname" : "Arial", 663 | "fontsize" : 13.0, 664 | "id" : "obj-3", 665 | "maxclass" : "newobj", 666 | "numinlets" : 1, 667 | "numoutlets" : 2, 668 | "outlettype" : [ "", "" ], 669 | "patching_rect" : [ 153.0, 465.0, 46.0, 23.0 ], 670 | "text" : "jit.spill" 671 | } 672 | 673 | } 674 | , { 675 | "box" : { 676 | "comment" : "", 677 | "id" : "obj-40", 678 | "index" : 1, 679 | "maxclass" : "outlet", 680 | "numinlets" : 1, 681 | "numoutlets" : 0, 682 | "patching_rect" : [ 153.0, 518.0, 25.0, 25.0 ] 683 | } 684 | 685 | } 686 | , { 687 | "box" : { 688 | "comment" : "", 689 | "id" : "obj-4", 690 | "index" : 1, 691 | "maxclass" : "inlet", 692 | "numinlets" : 0, 693 | "numoutlets" : 1, 694 | "outlettype" : [ "int" ], 695 | "patching_rect" : [ 71.0, 25.0, 25.0, 25.0 ] 696 | } 697 | 698 | } 699 | , { 700 | "box" : { 701 | "fontname" : "Arial", 702 | "fontsize" : 12.0, 703 | "id" : "obj-1", 704 | "maxclass" : "newobj", 705 | "numinlets" : 2, 706 | "numoutlets" : 1, 707 | "outlettype" : [ "bang" ], 708 | "patching_rect" : [ 71.0, 84.0, 128.0, 22.0 ], 709 | "text" : "metro @interval 10 hz" 710 | } 711 | 712 | } 713 | ], 714 | "lines" : [ { 715 | "patchline" : { 716 | "destination" : [ "obj-32", 0 ], 717 | "source" : [ "obj-1", 0 ] 718 | } 719 | 720 | } 721 | , { 722 | "patchline" : { 723 | "destination" : [ "obj-31", 0 ], 724 | "source" : [ "obj-10", 0 ] 725 | } 726 | 727 | } 728 | , { 729 | "patchline" : { 730 | "destination" : [ "obj-10", 0 ], 731 | "order" : 1, 732 | "source" : [ "obj-16", 0 ] 733 | } 734 | 735 | } 736 | , { 737 | "patchline" : { 738 | "destination" : [ "obj-5", 0 ], 739 | "order" : 0, 740 | "source" : [ "obj-16", 0 ] 741 | } 742 | 743 | } 744 | , { 745 | "patchline" : { 746 | "destination" : [ "obj-2", 0 ], 747 | "order" : 0, 748 | "source" : [ "obj-17", 0 ] 749 | } 750 | 751 | } 752 | , { 753 | "patchline" : { 754 | "destination" : [ "obj-3", 0 ], 755 | "order" : 1, 756 | "source" : [ "obj-17", 0 ] 757 | } 758 | 759 | } 760 | , { 761 | "patchline" : { 762 | "destination" : [ "obj-17", 0 ], 763 | "source" : [ "obj-20", 0 ] 764 | } 765 | 766 | } 767 | , { 768 | "patchline" : { 769 | "destination" : [ "obj-16", 0 ], 770 | "source" : [ "obj-25", 0 ] 771 | } 772 | 773 | } 774 | , { 775 | "patchline" : { 776 | "destination" : [ "obj-20", 0 ], 777 | "order" : 1, 778 | "source" : [ "obj-26", 0 ] 779 | } 780 | 781 | } 782 | , { 783 | "patchline" : { 784 | "destination" : [ "obj-27", 0 ], 785 | "order" : 0, 786 | "source" : [ "obj-26", 0 ] 787 | } 788 | 789 | } 790 | , { 791 | "patchline" : { 792 | "destination" : [ "obj-40", 0 ], 793 | "source" : [ "obj-3", 0 ] 794 | } 795 | 796 | } 797 | , { 798 | "patchline" : { 799 | "destination" : [ "obj-26", 0 ], 800 | "source" : [ "obj-30", 0 ] 801 | } 802 | 803 | } 804 | , { 805 | "patchline" : { 806 | "destination" : [ "obj-30", 0 ], 807 | "source" : [ "obj-31", 0 ] 808 | } 809 | 810 | } 811 | , { 812 | "patchline" : { 813 | "destination" : [ "obj-20", 0 ], 814 | "source" : [ "obj-32", 0 ] 815 | } 816 | 817 | } 818 | , { 819 | "patchline" : { 820 | "destination" : [ "obj-31", 0 ], 821 | "source" : [ "obj-32", 1 ] 822 | } 823 | 824 | } 825 | , { 826 | "patchline" : { 827 | "destination" : [ "obj-1", 0 ], 828 | "order" : 1, 829 | "source" : [ "obj-4", 0 ] 830 | } 831 | 832 | } 833 | , { 834 | "patchline" : { 835 | "destination" : [ "obj-25", 0 ], 836 | "order" : 0, 837 | "source" : [ "obj-4", 0 ] 838 | } 839 | 840 | } 841 | ] 842 | } 843 | , 844 | "patching_rect" : [ 49.0, 70.0, 148.0, 22.0 ], 845 | "saved_object_attributes" : { 846 | "description" : "", 847 | "digest" : "", 848 | "globalpatchername" : "", 849 | "tags" : "" 850 | } 851 | , 852 | "text" : "patcher valeurs aléatoires" 853 | } 854 | 855 | } 856 | , { 857 | "box" : { 858 | "angle" : 270.0, 859 | "bgcolor" : [ 1.0, 0.549019607843137, 0.450980392156863, 1.0 ], 860 | "id" : "obj-1", 861 | "maxclass" : "panel", 862 | "mode" : 0, 863 | "numinlets" : 1, 864 | "numoutlets" : 0, 865 | "patching_rect" : [ 231.0, 327.0, 128.0, 128.0 ], 866 | "presentation" : 1, 867 | "presentation_rect" : [ -6.0, -17.0, 187.0, 57.0 ], 868 | "proportion" : 0.5, 869 | "rounded" : 0 870 | } 871 | 872 | } 873 | ], 874 | "lines" : [ { 875 | "patchline" : { 876 | "destination" : [ "obj-3", 0 ], 877 | "source" : [ "obj-14", 0 ] 878 | } 879 | 880 | } 881 | , { 882 | "patchline" : { 883 | "destination" : [ "obj-14", 0 ], 884 | "source" : [ "obj-16", 0 ] 885 | } 886 | 887 | } 888 | ] 889 | } 890 | , 891 | "patching_rect" : [ 596.0, 441.5, 174.0, 37.0 ], 892 | "viewvisibility" : 1 893 | } 894 | 895 | } 896 | , { 897 | "box" : { 898 | "fontname" : "Arial", 899 | "fontsize" : 12.0, 900 | "id" : "obj-43", 901 | "linecount" : 3, 902 | "maxclass" : "comment", 903 | "numinlets" : 1, 904 | "numoutlets" : 0, 905 | "patching_rect" : [ 145.0, 221.5, 400.0, 48.0 ], 906 | "text" : "Send data as a list of up to 512 integers with values between 0 and 255. \nEach entry of the list corresponds to a matching DMX channel : \n ... " 1026 | } 1027 | 1028 | } 1029 | , { 1030 | "box" : { 1031 | "fontname" : "Arial", 1032 | "fontsize" : 12.0, 1033 | "id" : "obj-1", 1034 | "maxclass" : "newobj", 1035 | "numinlets" : 1, 1036 | "numoutlets" : 0, 1037 | "patching_rect" : [ 9.0, 713.0, 90.0, 22.0 ], 1038 | "text" : "DMXUSBPro c" 1039 | } 1040 | 1041 | } 1042 | ], 1043 | "lines" : [ { 1044 | "patchline" : { 1045 | "destination" : [ "obj-1", 0 ], 1046 | "source" : [ "obj-26", 0 ] 1047 | } 1048 | 1049 | } 1050 | , { 1051 | "patchline" : { 1052 | "destination" : [ "obj-1", 0 ], 1053 | "source" : [ "obj-28", 0 ] 1054 | } 1055 | 1056 | } 1057 | , { 1058 | "patchline" : { 1059 | "destination" : [ "obj-1", 0 ], 1060 | "source" : [ "obj-29", 0 ] 1061 | } 1062 | 1063 | } 1064 | , { 1065 | "patchline" : { 1066 | "destination" : [ "obj-1", 0 ], 1067 | "source" : [ "obj-3", 0 ] 1068 | } 1069 | 1070 | } 1071 | , { 1072 | "patchline" : { 1073 | "destination" : [ "obj-1", 0 ], 1074 | "source" : [ "obj-4", 0 ] 1075 | } 1076 | 1077 | } 1078 | , { 1079 | "patchline" : { 1080 | "destination" : [ "obj-28", 0 ], 1081 | "source" : [ "obj-44", 0 ] 1082 | } 1083 | 1084 | } 1085 | ], 1086 | "dependency_cache" : [ { 1087 | "name" : "DMXUSBPro.maxpat", 1088 | "bootpath" : "~/Downloads/DMX_USB_PRO_MAX-master(1)/DMX_USB_PRO_MAX-master", 1089 | "patcherrelativepath" : ".", 1090 | "type" : "JSON", 1091 | "implicit" : 1 1092 | } 1093 | , { 1094 | "name" : "jit.pass.mxe64", 1095 | "type" : "mx64" 1096 | } 1097 | ], 1098 | "autosave" : 0 1099 | } 1100 | 1101 | } 1102 | -------------------------------------------------------------------------------- /DMXUSBPro.maxpat: -------------------------------------------------------------------------------- 1 | { 2 | "patcher" : { 3 | "fileversion" : 1, 4 | "appversion" : { 5 | "major" : 8, 6 | "minor" : 1, 7 | "revision" : 11, 8 | "architecture" : "x64", 9 | "modernui" : 1 10 | } 11 | , 12 | "classnamespace" : "box", 13 | "rect" : [ 706.0, 255.0, 944.0, 679.0 ], 14 | "bglocked" : 0, 15 | "openinpresentation" : 0, 16 | "default_fontsize" : 12.0, 17 | "default_fontface" : 0, 18 | "default_fontname" : "Arial", 19 | "gridonopen" : 1, 20 | "gridsize" : [ 15.0, 15.0 ], 21 | "gridsnaponopen" : 1, 22 | "objectsnaponopen" : 1, 23 | "statusbarvisible" : 2, 24 | "toolbarvisible" : 1, 25 | "lefttoolbarpinned" : 0, 26 | "toptoolbarpinned" : 0, 27 | "righttoolbarpinned" : 0, 28 | "bottomtoolbarpinned" : 0, 29 | "toolbars_unpinned_last_save" : 0, 30 | "tallnewobj" : 0, 31 | "boxanimatetime" : 200, 32 | "enablehscroll" : 1, 33 | "enablevscroll" : 1, 34 | "devicewidth" : 0.0, 35 | "description" : "", 36 | "digest" : "", 37 | "tags" : "", 38 | "style" : "", 39 | "subpatcher_template" : "", 40 | "assistshowspatchername" : 0, 41 | "boxes" : [ { 42 | "box" : { 43 | "id" : "obj-15", 44 | "maxclass" : "newobj", 45 | "numinlets" : 1, 46 | "numoutlets" : 1, 47 | "outlettype" : [ "" ], 48 | "patching_rect" : [ 196.0, 276.653862953186035, 264.0, 22.0 ], 49 | "text" : "vexpr int(max(0\\, min(255\\, $f1))) @scalarmode 1" 50 | } 51 | 52 | } 53 | , { 54 | "box" : { 55 | "fontname" : "Arial", 56 | "fontsize" : 12.0, 57 | "id" : "obj-33", 58 | "maxclass" : "message", 59 | "numinlets" : 2, 60 | "numoutlets" : 1, 61 | "outlettype" : [ "" ], 62 | "patching_rect" : [ 195.25, 363.0, 219.0, 22.0 ], 63 | "text" : "Maximum message size is 512 integers" 64 | } 65 | 66 | } 67 | , { 68 | "box" : { 69 | "fontname" : "Arial", 70 | "fontsize" : 12.0, 71 | "id" : "obj-31", 72 | "maxclass" : "newobj", 73 | "numinlets" : 1, 74 | "numoutlets" : 0, 75 | "patching_rect" : [ 195.25, 396.0, 107.0, 22.0 ], 76 | "text" : "print DMXUSBPro" 77 | } 78 | 79 | } 80 | , { 81 | "box" : { 82 | "fontname" : "Arial", 83 | "fontsize" : 12.0, 84 | "id" : "obj-30", 85 | "maxclass" : "newobj", 86 | "numinlets" : 3, 87 | "numoutlets" : 2, 88 | "outlettype" : [ "int", "int" ], 89 | "patching_rect" : [ 57.0, 283.0, 65.0, 22.0 ], 90 | "text" : "split 0 512" 91 | } 92 | 93 | } 94 | , { 95 | "box" : { 96 | "fontname" : "Arial", 97 | "fontsize" : 12.0, 98 | "id" : "obj-3", 99 | "maxclass" : "newobj", 100 | "numinlets" : 2, 101 | "numoutlets" : 2, 102 | "outlettype" : [ "", "" ], 103 | "patching_rect" : [ 93.25, 569.0, 147.0, 22.0 ], 104 | "text" : "zl iter 1 @zlmaxsize 1024" 105 | } 106 | 107 | } 108 | , { 109 | "box" : { 110 | "fontname" : "Arial", 111 | "fontsize" : 12.0, 112 | "id" : "obj-23", 113 | "maxclass" : "comment", 114 | "numinlets" : 1, 115 | "numoutlets" : 0, 116 | "patching_rect" : [ 292.0, 211.0, 265.0, 20.0 ], 117 | "text" : "LSB MSB : length of start_code + data" 118 | } 119 | 120 | } 121 | , { 122 | "box" : { 123 | "fontname" : "Arial", 124 | "fontsize" : 12.0, 125 | "id" : "obj-22", 126 | "maxclass" : "newobj", 127 | "numinlets" : 1, 128 | "numoutlets" : 2, 129 | "outlettype" : [ "int", "int" ], 130 | "patching_rect" : [ 57.0, 356.0, 32.5, 22.0 ], 131 | "text" : "t i i" 132 | } 133 | 134 | } 135 | , { 136 | "box" : { 137 | "fontname" : "Arial", 138 | "fontsize" : 12.0, 139 | "id" : "obj-19", 140 | "maxclass" : "newobj", 141 | "numinlets" : 2, 142 | "numoutlets" : 1, 143 | "outlettype" : [ "int" ], 144 | "patching_rect" : [ 57.0, 328.0, 32.5, 22.0 ], 145 | "text" : "+ 1" 146 | } 147 | 148 | } 149 | , { 150 | "box" : { 151 | "fontname" : "Arial", 152 | "fontsize" : 12.0, 153 | "id" : "obj-12", 154 | "maxclass" : "newobj", 155 | "numinlets" : 2, 156 | "numoutlets" : 1, 157 | "outlettype" : [ "int" ], 158 | "patching_rect" : [ 59.25, 403.0, 45.0, 22.0 ], 159 | "text" : "% 256" 160 | } 161 | 162 | } 163 | , { 164 | "box" : { 165 | "fontname" : "Arial", 166 | "fontsize" : 12.0, 167 | "id" : "obj-11", 168 | "maxclass" : "newobj", 169 | "numinlets" : 2, 170 | "numoutlets" : 1, 171 | "outlettype" : [ "int" ], 172 | "patching_rect" : [ 130.25, 403.0, 37.0, 22.0 ], 173 | "text" : "/ 256" 174 | } 175 | 176 | } 177 | , { 178 | "box" : { 179 | "fontname" : "Arial", 180 | "fontsize" : 12.0, 181 | "id" : "obj-10", 182 | "maxclass" : "newobj", 183 | "numinlets" : 2, 184 | "numoutlets" : 1, 185 | "outlettype" : [ "" ], 186 | "patching_rect" : [ 93.25, 435.0, 32.5, 22.0 ], 187 | "text" : "join" 188 | } 189 | 190 | } 191 | , { 192 | "box" : { 193 | "fontname" : "Arial", 194 | "fontsize" : 12.0, 195 | "id" : "obj-9", 196 | "maxclass" : "comment", 197 | "numinlets" : 1, 198 | "numoutlets" : 0, 199 | "patching_rect" : [ 259.0, 168.0, 265.0, 20.0 ], 200 | "text" : "126 6 LSB MSB start_code data... 231" 201 | } 202 | 203 | } 204 | , { 205 | "box" : { 206 | "fontname" : "Arial", 207 | "fontsize" : 12.0, 208 | "id" : "obj-21", 209 | "maxclass" : "newobj", 210 | "numinlets" : 1, 211 | "numoutlets" : 1, 212 | "outlettype" : [ "" ], 213 | "patching_rect" : [ 93.25, 534.0, 74.0, 22.0 ], 214 | "text" : "append 231" 215 | } 216 | 217 | } 218 | , { 219 | "box" : { 220 | "fontname" : "Arial", 221 | "fontsize" : 12.0, 222 | "id" : "obj-17", 223 | "maxclass" : "newobj", 224 | "numinlets" : 2, 225 | "numoutlets" : 2, 226 | "outlettype" : [ "", "" ], 227 | "patching_rect" : [ 93.25, 500.0, 139.0, 22.0 ], 228 | "text" : "zl join @zlmaxsize 1024" 229 | } 230 | 231 | } 232 | , { 233 | "box" : { 234 | "fontname" : "Arial", 235 | "fontsize" : 12.0, 236 | "id" : "obj-16", 237 | "maxclass" : "message", 238 | "numinlets" : 2, 239 | "numoutlets" : 1, 240 | "outlettype" : [ "" ], 241 | "patching_rect" : [ 93.25, 463.0, 84.0, 22.0 ], 242 | "text" : "126 6 $1 $2 0" 243 | } 244 | 245 | } 246 | , { 247 | "box" : { 248 | "fontname" : "Arial", 249 | "fontsize" : 12.0, 250 | "id" : "obj-14", 251 | "maxclass" : "newobj", 252 | "numinlets" : 2, 253 | "numoutlets" : 2, 254 | "outlettype" : [ "", "" ], 255 | "patching_rect" : [ 57.0, 227.0, 130.0, 22.0 ], 256 | "text" : "zl len @zlmaxsize 512" 257 | } 258 | 259 | } 260 | , { 261 | "box" : { 262 | "fontname" : "Arial", 263 | "fontsize" : 12.0, 264 | "id" : "obj-13", 265 | "maxclass" : "newobj", 266 | "numinlets" : 1, 267 | "numoutlets" : 2, 268 | "outlettype" : [ "", "" ], 269 | "patching_rect" : [ 57.0, 168.0, 158.0, 22.0 ], 270 | "text" : "trigger l l" 271 | } 272 | 273 | } 274 | , { 275 | "box" : { 276 | "fontname" : "Arial", 277 | "fontsize" : 12.0, 278 | "id" : "obj-6", 279 | "maxclass" : "newobj", 280 | "numinlets" : 3, 281 | "numoutlets" : 3, 282 | "outlettype" : [ "", "", "" ], 283 | "patching_rect" : [ 57.0, 130.0, 72.0, 22.0 ], 284 | "text" : "route list int" 285 | } 286 | 287 | } 288 | , { 289 | "box" : { 290 | "fontname" : "Arial", 291 | "fontsize" : 12.0, 292 | "id" : "obj-5", 293 | "maxclass" : "newobj", 294 | "numinlets" : 1, 295 | "numoutlets" : 2, 296 | "outlettype" : [ "int", "" ], 297 | "patching_rect" : [ 93.25, 641.0, 141.0, 22.0 ], 298 | "text" : "serial #1 @baud 115200" 299 | } 300 | 301 | } 302 | , { 303 | "box" : { 304 | "comment" : "", 305 | "id" : "obj-1", 306 | "index" : 1, 307 | "maxclass" : "inlet", 308 | "numinlets" : 0, 309 | "numoutlets" : 1, 310 | "outlettype" : [ "" ], 311 | "patching_rect" : [ 57.0, 13.0, 25.0, 25.0 ] 312 | } 313 | 314 | } 315 | ], 316 | "lines" : [ { 317 | "patchline" : { 318 | "destination" : [ "obj-6", 0 ], 319 | "source" : [ "obj-1", 0 ] 320 | } 321 | 322 | } 323 | , { 324 | "patchline" : { 325 | "destination" : [ "obj-16", 0 ], 326 | "source" : [ "obj-10", 0 ] 327 | } 328 | 329 | } 330 | , { 331 | "patchline" : { 332 | "destination" : [ "obj-10", 1 ], 333 | "source" : [ "obj-11", 0 ] 334 | } 335 | 336 | } 337 | , { 338 | "patchline" : { 339 | "destination" : [ "obj-10", 0 ], 340 | "source" : [ "obj-12", 0 ] 341 | } 342 | 343 | } 344 | , { 345 | "patchline" : { 346 | "destination" : [ "obj-14", 0 ], 347 | "source" : [ "obj-13", 0 ] 348 | } 349 | 350 | } 351 | , { 352 | "patchline" : { 353 | "destination" : [ "obj-15", 0 ], 354 | "source" : [ "obj-13", 1 ] 355 | } 356 | 357 | } 358 | , { 359 | "patchline" : { 360 | "destination" : [ "obj-30", 0 ], 361 | "source" : [ "obj-14", 0 ] 362 | } 363 | 364 | } 365 | , { 366 | "patchline" : { 367 | "destination" : [ "obj-17", 1 ], 368 | "source" : [ "obj-15", 0 ] 369 | } 370 | 371 | } 372 | , { 373 | "patchline" : { 374 | "destination" : [ "obj-17", 0 ], 375 | "source" : [ "obj-16", 0 ] 376 | } 377 | 378 | } 379 | , { 380 | "patchline" : { 381 | "destination" : [ "obj-21", 0 ], 382 | "source" : [ "obj-17", 0 ] 383 | } 384 | 385 | } 386 | , { 387 | "patchline" : { 388 | "destination" : [ "obj-22", 0 ], 389 | "source" : [ "obj-19", 0 ] 390 | } 391 | 392 | } 393 | , { 394 | "patchline" : { 395 | "destination" : [ "obj-3", 0 ], 396 | "source" : [ "obj-21", 0 ] 397 | } 398 | 399 | } 400 | , { 401 | "patchline" : { 402 | "destination" : [ "obj-11", 0 ], 403 | "source" : [ "obj-22", 1 ] 404 | } 405 | 406 | } 407 | , { 408 | "patchline" : { 409 | "destination" : [ "obj-12", 0 ], 410 | "source" : [ "obj-22", 0 ] 411 | } 412 | 413 | } 414 | , { 415 | "patchline" : { 416 | "destination" : [ "obj-5", 0 ], 417 | "source" : [ "obj-3", 0 ] 418 | } 419 | 420 | } 421 | , { 422 | "patchline" : { 423 | "destination" : [ "obj-19", 0 ], 424 | "source" : [ "obj-30", 0 ] 425 | } 426 | 427 | } 428 | , { 429 | "patchline" : { 430 | "destination" : [ "obj-33", 0 ], 431 | "source" : [ "obj-30", 1 ] 432 | } 433 | 434 | } 435 | , { 436 | "patchline" : { 437 | "destination" : [ "obj-31", 0 ], 438 | "source" : [ "obj-33", 0 ] 439 | } 440 | 441 | } 442 | , { 443 | "patchline" : { 444 | "destination" : [ "obj-13", 0 ], 445 | "source" : [ "obj-6", 1 ] 446 | } 447 | 448 | } 449 | , { 450 | "patchline" : { 451 | "destination" : [ "obj-13", 0 ], 452 | "source" : [ "obj-6", 0 ] 453 | } 454 | 455 | } 456 | , { 457 | "patchline" : { 458 | "destination" : [ "obj-5", 0 ], 459 | "midpoints" : [ 119.5, 153.0, 619.0, 153.0, 619.0, 621.0, 102.75, 621.0 ], 460 | "source" : [ "obj-6", 2 ] 461 | } 462 | 463 | } 464 | ] 465 | } 466 | 467 | } 468 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DMX USB PRO MAX 2 | ===================== 3 | 4 | Enttec DMX USB Pro patcher for Cycling '74 Max 5 | 6 | by Thomas Ouellet Fredericks 7 | 8 | Enttec DMX USB Pro product link : 9 | http://www.enttec.com/?main_menu=Products&pn=70304 --------------------------------------------------------------------------------