Monday, September 13, 2010

Another Control System: Max




{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "change the slider to alter the brightness of the LED",
"linecount" : 3,
"numinlets" : 1,
"patching_rect" : [ 14.0, 57.0, 117.0, 48.0 ],
"id" : "obj-7",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "number",
"numinlets" : 1,
"patching_rect" : [ 139.0, 207.0, 50.0, 19.0 ],
"id" : "obj-6",
"fontname" : "Verdana",
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"fontsize" : 10.0
}

}
, {
"box" : {
"maxclass" : "slider",
"bgcolor" : [ 0.94902, 0.94902, 0.94902, 0.0 ],
"numinlets" : 1,
"patching_rect" : [ 139.0, 57.0, 20.0, 140.0 ],
"id" : "obj-1",
"numoutlets" : 1,
"size" : 256.0,
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 0 1",
"numinlets" : 1,
"patching_rect" : [ 266.0, 127.0, 62.0, 20.0 ],
"id" : "obj-30",
"fontname" : "Arial",
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "" ],
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "click here to close the serial port",
"numinlets" : 1,
"patching_rect" : [ 314.0, 218.0, 206.0, 20.0 ],
"id" : "obj-26",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "click here to open the serial port",
"numinlets" : 1,
"patching_rect" : [ 339.0, 192.0, 206.0, 20.0 ],
"id" : "obj-27",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "close",
"numinlets" : 2,
"patching_rect" : [ 266.0, 218.0, 39.0, 18.0 ],
"id" : "obj-21",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "port a",
"numinlets" : 2,
"patching_rect" : [ 288.0, 192.0, 41.0, 18.0 ],
"id" : "obj-19",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Click here to get a list of serial ports",
"numinlets" : 1,
"patching_rect" : [ 359.0, 166.0, 207.0, 20.0 ],
"id" : "obj-2",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"patching_rect" : [ 266.0, 90.0, 15.0, 15.0 ],
"id" : "obj-11",
"numoutlets" : 1,
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "print",
"numinlets" : 2,
"patching_rect" : [ 308.0, 166.0, 36.0, 18.0 ],
"id" : "obj-13",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "serial a 9600",
"numinlets" : 1,
"patching_rect" : [ 183.0, 242.0, 84.0, 20.0 ],
"id" : "obj-14",
"fontname" : "Arial",
"numoutlets" : 2,
"outlettype" : [ "int", "" ],
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Click to start",
"numinlets" : 1,
"patching_rect" : [ 293.0, 90.0, 117.0, 20.0 ],
"id" : "obj-17",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "panel",
"mode" : 1,
"numinlets" : 1,
"patching_rect" : [ 139.0, 57.0, 21.0, 139.0 ],
"grad1" : [ 1.0, 1.0, 1.0, 1.0 ],
"id" : "obj-8",
"numoutlets" : 0,
"angle" : 270.0,
"grad2" : [ 0.509804, 0.509804, 0.509804, 1.0 ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ 148.5, 233.5, 192.5, 233.5 ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ 317.5, 187.5, 192.5, 187.5 ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ 297.5, 215.5, 192.5, 215.5 ]
}

}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ 275.5, 238.5, 192.5, 238.5 ]
}

}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-30", 1 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-30", 0 ],
"hidden" : 0,
"midpoints" : [ 275.0, 118.0, 275.5, 118.0 ]
}

}
]
}

No comments:

Post a Comment