Here is a copy of the code for the patcher in MaxMSP. If someone with experience with Max and Arduino could give me a hand that would be greatly appreciated.
{
"patcher" : {
"fileversion" : 1,
"rect" : [ 0.0, 44.0, 1280.0, 726.0 ],
"bglocked" : 0,
"defrect" : [ 0.0, 44.0, 1280.0, 726.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-2",
"patching_rect" : [ 221.0, 540.0, 50.0, 20.0 ],
"fontname" : "Arial",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "ezdac~",
"presentation_rect" : [ 764.0, 176.0, 45.0, 45.0 ],
"numinlets" : 2,
"id" : "obj-52",
"patching_rect" : [ 875.0, 322.0, 45.0, 45.0 ],
"presentation" : 1,
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-18",
"patching_rect" : [ 304.0, 644.0, 32.5, 18.0 ],
"fontname" : "Arial",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "1",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-44",
"patching_rect" : [ 232.0, 643.0, 32.5, 18.0 ],
"fontname" : "Arial",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"numinlets" : 1,
"id" : "obj-45",
"patching_rect" : [ 108.0, 636.0, 20.0, 20.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"numinlets" : 1,
"id" : "obj-46",
"patching_rect" : [ 134.0, 637.0, 20.0, 20.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 0 1",
"outlettype" : [ "bang", "bang", "" ],
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-47",
"patching_rect" : [ 222.0, 578.0, 46.0, 20.0 ],
"fontname" : "Arial",
"numoutlets" : 3
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p Sound File Player 1",
"linecount" : 2,
"presentation_linecount" : 2,
"color" : [ 1.0, 0.0, 0.419608, 1.0 ],
"fontsize" : 12.0,
"presentation_rect" : [ 231.0, 426.0, 93.0, 34.0 ],
"numinlets" : 1,
"id" : "obj-48",
"patching_rect" : [ 397.0, 571.0, 93.0, 34.0 ],
"fontname" : "Arial",
"presentation" : 1,
"numoutlets" : 0,
"patcher" : {
"fileversion" : 1,
"rect" : [ 51.0, 94.0, 299.0, 412.0 ],
"bglocked" : 0,
"defrect" : [ 51.0, 94.0, 299.0, 412.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"maxclass" : "message",
"text" : "loop $1",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-8",
"patching_rect" : [ 196.0, 55.0, 50.0, 18.0 ],
"fontname" : "Arial",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "" ],
"numinlets" : 0,
"id" : "obj-7",
"patching_rect" : [ 45.0, 16.0, 25.0, 25.0 ],
"numoutlets" : 1,
"comment" : ""
}
}
, {
"box" : {
"maxclass" : "gain~",
"outlettype" : [ "signal", "int" ],
"numinlets" : 2,
"id" : "obj-5",
"patching_rect" : [ 122.0, 116.0, 67.0, 104.0 ],
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "open",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-4",
"patching_rect" : [ 123.0, 35.0, 37.0, 18.0 ],
"fontname" : "Arial",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"numinlets" : 1,
"id" : "obj-3",
"patching_rect" : [ 86.0, 37.0, 20.0, 20.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"outlettype" : [ "signal", "bang" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-2",
"patching_rect" : [ 123.0, 76.0, 49.0, 20.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}
}
, {
"box" : {