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

305 lines
7.0 KiB
Plaintext

{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 6,
"architecture" : "x86"
}
,
"rect" : [ 608.0, 81.0, 1202.0, 749.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 14.0,
"default_fontface" : 0,
"default_fontname" : "Andale Mono",
"gridonopen" : 0,
"gridsize" : [ 5.0, 5.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "FullPacket" ],
"patching_rect" : [ 218.0, 295.0, 95.0, 22.0 ],
"text" : "o.downcast"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-18",
"linecount" : 10,
"maxclass" : "o.display",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 28.5, 425.0, 267.0, 155.0 ],
"text" : "/ping : 100,\n/thing : [2., 3.04, 1242., 23., \"thing\"],\n/stuff : [1, 2, 3, 4, 5],\n/fsakjfskfsdkasfk : [234, 242, 234, 234, 4],\n/decision : 1,\n/notdecision : 0,\n/micros : 616229100,\n/sequencenumber : 20557,\n/digital/5 : false,\n/lsb : false",
"textcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-3",
"linecount" : 5,
"maxclass" : "o.display",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 404.5, 425.0, 158.0, 88.0 ],
"text" : "/port : \"usbmodem12341\",\n/rate/output : 32,\n/rate/input : 39,\n/mediansize/received : -1,\n/baud",
"textcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-19",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 424.5, 269.5, 170.0, 33.0 ],
"text" : "Look for your device in the menu list of serial USB"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "bpatcher",
"name" : "o.io.serial.display.maxpat",
"numinlets" : 1,
"numoutlets" : 1,
"offset" : [ 3.0, 0.0 ],
"outlettype" : [ "FullPacket" ],
"patching_rect" : [ 404.5, 340.0, 164.0, 24.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "FullPacket", "FullPacket" ],
"patching_rect" : [ 343.5, 379.0, 80.0, 20.0 ],
"text" : "o.io.slipserial"
}
}
, {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"id" : "obj-2",
"linecount" : 6,
"maxclass" : "o.compose",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 45.0, 90.166656, 964.0, 105.0 ],
"text" : "/ping : 100,\n/thing : [2., 3.04, 1242., 23., \"thing\"],\n/stuff : [1, 2, 3, 4, 5],\n/fsakjfskfsdkasfk : [234, 242, 234, 234, 4],\n/decision : true,\n/notdecision : false",
"textcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"frgb" : 0.0,
"id" : "obj-4",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 595.0, 415.0, 150.0, 54.0 ],
"text" : "stats on serial OSC communications"
}
}
, {
"box" : {
"fontname" : "Andale Mono",
"fontsize" : 14.0,
"id" : "obj-61",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 45.0, 38.166656, 162.0, 22.0 ],
"text" : "metro 22 @active 1"
}
}
],
"lines" : [ {
"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-2", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-23", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-18", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-20", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 414.0, 406.0, 583.0, 406.0, 583.0, 316.0, 414.0, 316.0 ],
"source" : [ "obj-23", 1 ]
}
}
, {
"patchline" : {
"color" : [ 1.0, 0.8, 0.4, 1.0 ],
"destination" : [ "obj-3", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 414.0, 420.0, 414.0, 420.0 ],
"source" : [ "obj-23", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-61", 0 ]
}
}
],
"dependency_cache" : [ {
"name" : "o.io.slipserial.maxpat",
"bootpath" : "/Users/adrian2013/Documents/Max/Packages/CNMAT-MMJSS/patchers/esplora",
"patcherrelativepath" : "../../../../../Documents/Max/Packages/CNMAT-MMJSS/patchers/esplora",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.righttoleft.maxpat",
"bootpath" : "/Users/adrian2013/Documents/Max/Packages/CNMAT-odot/patchers/ordering",
"patcherrelativepath" : "../../../../../Documents/Max/Packages/CNMAT-odot/patchers/ordering",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.io.serial.display.maxpat",
"bootpath" : "/Users/adrian2013/Documents/Max/Packages/CNMAT-MMJSS/patchers/esplora",
"patcherrelativepath" : "../../../../../Documents/Max/Packages/CNMAT-MMJSS/patchers/esplora",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "o.compose.mxo",
"type" : "iLaX"
}
, {
"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"
}
]
}
}