c2-utopia/lib/OSC/Applications/MaxMSP/examples/SerialReceive.maxpat

429 lines
8.7 KiB
Plaintext

{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 7,
"minor" : 0,
"revision" : 4,
"architecture" : "x86",
"modernui" : 1
}
,
"rect" : [ 378.0, 174.0, 792.0, 490.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"boxes" : [ {
"box" : {
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-5",
"maxclass" : "o.display",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 68.0, 374.0, 267.0, 34.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "FullPacket" ],
"patching_rect" : [ 164.0, 202.0, 69.0, 22.0 ],
"style" : "",
"text" : "o.pack /led"
}
}
, {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "FullPacket" ],
"patching_rect" : [ 164.0, 244.0, 95.0, 24.0 ],
"style" : "",
"text" : "o.downcast"
}
}
, {
"box" : {
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-18",
"maxclass" : "o.display",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 164.0, 314.0, 92.0, 34.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
}
, {
"box" : {
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-3",
"maxclass" : "o.display",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 350.5, 374.0, 158.0, 34.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-2",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 370.5, 218.5, 170.0, 33.0 ],
"style" : "",
"text" : "Look for your device in the menu list of serial USB"
}
}
, {
"box" : {
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"id" : "obj-4",
"lockeddragscroll" : 0,
"maxclass" : "bpatcher",
"name" : "o.io.serial.display.maxpat",
"numinlets" : 1,
"numoutlets" : 1,
"offset" : [ 3.0, 0.0 ],
"outlettype" : [ "FullPacket" ],
"patching_rect" : [ 350.5, 289.0, 340.5, 25.0 ],
"viewvisibility" : 1
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "FullPacket", "FullPacket" ],
"patching_rect" : [ 289.5, 328.0, 80.0, 22.0 ],
"style" : "",
"text" : "o.io.slipserial"
}
}
, {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"id" : "obj-11",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 541.0, 364.0, 150.0, 54.0 ],
"style" : "",
"text" : "stats on serial OSC communications"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-19",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 43.5, 42.0, 156.0, 33.0 ],
"style" : "",
"text" : "PWM control of brightness of LED"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-15",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 114.0, 151.0, 32.5, 22.0 ],
"style" : "",
"text" : "on"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-13",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 56.0, 151.0, 32.5, 22.0 ],
"style" : "",
"text" : "off"
}
}
, {
"box" : {
"contdata" : 1,
"id" : "obj-9",
"maxclass" : "multislider",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 220.5, 31.0, 20.0, 140.0 ],
"setminmax" : [ 0.0, 1.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 164.0, 151.0, 20.0, 20.0 ],
"style" : ""
}
}
],
"lines" : [ {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-18", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-23", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-1", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-12", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-12", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-15", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-3", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 360.0, 369.0, 360.0, 369.0 ],
"source" : [ "obj-23", 1 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 360.0, 355.0, 702.0, 355.0, 702.0, 265.0, 360.0, 265.0 ],
"source" : [ "obj-23", 1 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-23", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-12", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-12", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-9", 0 ]
}
}
],
"dependency_cache" : [ {
"name" : "o.io.slipserial.maxpat",
"bootpath" : "~/Documents/Max/Packages/o.io/experimental/Protocols/serial",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.righttoleft.maxpat",
"bootpath" : "~/Documents/Max/Packages/odot/patchers/ordering",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.io.serial.display.maxpat",
"bootpath" : "~/Documents/Max/Packages/o.io/experimental/Protocols/serial",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.pack.mxo",
"type" : "iLaX"
}
, {
"name" : "o.route.mxo",
"type" : "iLaX"
}
, {
"name" : "o.union.mxo",
"type" : "iLaX"
}
, {
"name" : "o.validate.mxo",
"type" : "iLaX"
}
, {
"name" : "o.print.mxo",
"type" : "iLaX"
}
, {
"name" : "o.slip.encode.mxo",
"type" : "iLaX"
}
, {
"name" : "o.slip.decode.mxo",
"type" : "iLaX"
}
, {
"name" : "o.if.mxo",
"type" : "iLaX"
}
, {
"name" : "o.display.mxo",
"type" : "iLaX"
}
, {
"name" : "o.downcast.mxo",
"type" : "iLaX"
}
],
"embedsnapshot" : 0
}
}