Forums > MaxMSP

MAXMSP to arduino-Uni project

April 17, 2012 | 6:09 pm

Hi
Im wondering if anyone can help with this problem that i cant seem to overcome. Im trying to connect Arduino and maxmsp together. This is the patch i have..

{
"boxes" : [ {
"box" : {
"maxclass" : "message",
"text" : "0 1 2 3 4 5",
"id" : "obj-43",
"fontsize" : 18.0,
"numinlets" : 2,
"patching_rect" : [ 241.5, 84.0, 96.0, 25.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p sampler",
"id" : "obj-41",
"fontsize" : 18.0,
"numinlets" : 0,
"patching_rect" : [ 203.0, 593.0, 469.0, 27.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 0,
"revision" : 4
}
,
"rect" : [ 606.0, 178.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"maxclass" : "button",
"id" : "obj-5",
"numinlets" : 1,
"patching_rect" : [ 80.5, 50.0, 20.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 1",
"id" : "obj-2",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 80.5, 24.0, 52.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"id" : "obj-1",
"numinlets" : 2,
"patching_rect" : [ 92.5, 370.0, 45.0, 45.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-47",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 306.0, 298.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 6.wav",
"id" : "obj-46",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 328.0, 252.0, 111.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-43",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 559.0, 165.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 5.wav",
"linecount" : 3,
"id" : "obj-42",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 559.0, 95.0, 50.0, 46.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-39",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 457.0, 165.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 4.wav",
"id" : "obj-38",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 411.0, 109.0, 111.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-35",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 232.0, 165.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 3.wav",
"id" : "obj-34",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 275.0, 109.0, 111.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 2.wav",
"id" : "obj-31",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 153.0, 109.0, 111.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-28",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 153.0, 165.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"id" : "obj-36",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 80.5, 165.0, 49.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open sensor 1.wav",
"id" : "obj-37",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 30.5, 109.0, 111.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-40",
"numinlets" : 1,
"patching_rect" : [ 80.5, 245.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-47", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 183.5, 315.5, 183.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-42", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 82.0, 568.5, 82.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-38", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 89.0, 420.5, 89.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-37", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 92.5, 40.0, 92.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-34", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 92.5, 284.5, 92.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-31", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 92.5, 162.5, 92.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-47", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ 315.5, 327.0, 202.75, 327.0, 202.75, 235.0, 90.0, 235.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-46", 0 ],
"destination" : [ "obj-47", 0 ],
"hidden" : 0,
"midpoints" : [ 337.5, 287.5, 315.5, 287.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ 568.5, 214.5, 90.0, 214.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 568.5, 277.0, 102.0, 277.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-42", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ 568.5, 150.0, 568.5, 150.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ 466.5, 214.5, 90.0, 214.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 466.5, 277.0, 102.0, 277.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-38", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"midpoints" : [ 420.5, 145.5, 466.5, 145.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-37", 0 ],
"destination" : [ "obj-36", 0 ],
"hidden" : 0,
"midpoints" : [ 40.0, 146.0, 90.0, 146.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 90.0, 277.0, 102.0, 277.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ 241.5, 214.5, 90.0, 214.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 241.5, 277.0, 102.0, 277.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ 162.5, 145.5, 162.5, 145.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ 162.5, 214.5, 90.0, 214.5 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 162.5, 277.0, 102.0, 277.0 ],
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
],
"dependency_cache" : [ ]
}
,
"saved_object_attributes" : {
"tags" : "",
"fontface" : 0,
"default_fontface" : 0,
"fontsize" : 12.0,
"globalpatchername" : "",
"digest" : "",
"default_fontname" : "Arial",
"default_fontsize" : 12.0,
"description" : "",
"fontname" : "Arial"
}

}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-21",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 758.5, 429.0, 99.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-18",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 648.0, 429.0, 99.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-16",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 535.0, 429.0, 99.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-2",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 417.0, 429.0, 99.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "88 95 0",
"id" : "obj-14",
"fontsize" : 18.0,
"numinlets" : 2,
"patching_rect" : [ 30.0, 419.0, 156.0, 25.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : ""88 95 0"",
"id" : "obj-11",
"fontsize" : 18.0,
"numinlets" : 2,
"patching_rect" : [ 31.0, 361.0, 156.0, 25.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "56 56 32 57 53 32 48",
"linecount" : 2,
"id" : "obj-8",
"fontsize" : 18.0,
"numinlets" : 2,
"patching_rect" : [ 35.0, 292.0, 159.0, 46.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "split up the different readings",
"id" : "obj-22",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 392.0, 382.0, 242.0, 27.0 ],
"numoutlets" : 0,
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "group up the packet",
"id" : "obj-20",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 339.0, 247.0, 170.0, 27.0 ],
"numoutlets" : 0,
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "split out CR LF",
"id" : "obj-19",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 307.0, 181.0, 130.0, 27.0 ],
"numoutlets" : 0,
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-17",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 302.0, 427.0, 99.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-15",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 205.0, 427.0, 90.0, 27.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "unpack 0 0 0 0 0 0",
"id" : "obj-13",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 210.0, 382.0, 159.0, 27.0 ],
"numoutlets" : 6,
"outlettype" : [ "int", "int", "int", "int", "int", "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "convert a string into a list",
"id" : "obj-12",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 323.0, 333.0, 210.0, 27.0 ],
"numoutlets" : 0,
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "fromsymbol",
"id" : "obj-10",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 210.0, 332.0, 104.0, 27.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "converts ASCII numbers into text",
"id" : "obj-9",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 269.0, 292.0, 274.0, 27.0 ],
"numoutlets" : 0,
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "itoa",
"id" : "obj-7",
"fontsize" : 18.0,
"numinlets" : 3,
"patching_rect" : [ 207.0, 291.0, 46.0, 27.0 ],
"numoutlets" : 1,
"outlettype" : [ "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "zl group 1000",
"id" : "obj-6",
"fontsize" : 18.0,
"numinlets" : 2,
"patching_rect" : [ 208.0, 249.0, 120.0, 27.0 ],
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 13 10",
"id" : "obj-5",
"fontsize" : 18.0,
"numinlets" : 3,
"patching_rect" : [ 203.0, 181.0, 84.0, 27.0 ],
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "serial a 9600",
"id" : "obj-4",
"fontsize" : 18.0,
"numinlets" : 1,
"patching_rect" : [ 201.0, 134.0, 114.0, 27.0 ],
"numoutlets" : 2,
"outlettype" : [ "int", "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "toggle",
"id" : "obj-3",
"numinlets" : 1,
"patching_rect" : [ 152.0, 40.0, 20.0, 20.0 ],
"numoutlets" : 1,
"parameter_enable" : 0,
"outlettype" : [ "int" ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-11", 1 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"disabled" : 0
}

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

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-5", 2 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-13", 2 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-13", 1 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-14", 1 ],
"hidden" : 0,
"disabled" : 0
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"disabled" : 0
}

}
],
"appversion" : {
"major" : 6,
"minor" : 0,
"revision" : 4
}

}

Can anyone help??


Viewing 1 post (of 1 total)