Skip to content

Commit

Permalink
added the help patch and some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpalumbo committed Jan 23, 2021
1 parent 855c488 commit e8b77d3
Show file tree
Hide file tree
Showing 3 changed files with 581 additions and 12 deletions.
398 changes: 398 additions & 0 deletions OSC_help.maxpat
Original file line number Diff line number Diff line change
@@ -0,0 +1,398 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 8,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 945.0, 158.0, 640.0, 480.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" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-23",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 199.0, 590.0, 97.0, 22.0 ],
"text" : "test/message $1"
}

}
, {
"box" : {
"id" : "obj-17",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 371.25, 623.0, 157.0, 47.0 ],
"presentation_linecount" : 3,
"text" : "Also invalid, as the address pattern is missing the lead slash"
}

}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 199.0, 550.0, 97.0, 22.0 ],
"text" : "scale 0 100 0. 1."
}

}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 198.0, 516.0, 82.0, 22.0 ],
"text" : "counter 0 100"
}

}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 198.0, 483.0, 119.0, 22.0 ],
"text" : "metro 150 @active 1"
}

}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 233.75, 623.0, 125.5, 22.0 ],
"presentation_linecount" : 3,
"text" : "test/message 0.76"
}

}
, {
"box" : {
"id" : "obj-16",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 249.25, 422.0, 157.0, 33.0 ],
"presentation_linecount" : 2,
"text" : "This is invalid. It is missing an address pattern "
}

}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 159.0, 389.0, 97.0, 22.0 ],
"text" : "scale 0 100 0. 1."
}

}
, {
"box" : {
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 159.0, 356.0, 82.0, 22.0 ],
"text" : "counter 0 100"
}

}
, {
"box" : {
"id" : "obj-15",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 159.0, 323.0, 119.0, 22.0 ],
"text" : "metro 150 @active 1"
}

}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 192.75, 422.0, 54.5, 22.0 ],
"text" : "0.66"
}

}
, {
"box" : {
"id" : "obj-3",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 118.0, 17.0, 499.0, 47.0 ],
"text" : "After running this patch, look at the outgoing OSC message panel in the workshop.maxpat to verify it is being sent. See also that the incorrect messages below are not appearing in the outgoing panel. "
}

}
, {
"box" : {
"id" : "obj-13",
"linecount" : 8,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 256.0, 689.0, 153.0, 114.0 ],
"text" : "<<< Note: Can only have one instance of a udpsend object on a given port. So you will want to close this patch when working on your own instrument/code. (or just send data to this patch...)"
}

}
, {
"box" : {
"id" : "obj-11",
"linecount" : 6,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 317.0, 215.0, 153.0, 87.0 ],
"text" : "This is a valid OSC message, because it has an address pattern that begins with a forward slash '/', and is followed by data to send. "
}

}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 119.0, 133.0, 97.0, 22.0 ],
"text" : "scale 0 100 0. 1."
}

}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 141.0, 215.0, 172.0, 22.0 ],
"text" : "/test/message 0.81"
}

}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 118.0, 99.0, 82.0, 22.0 ],
"text" : "counter 0 100"
}

}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 118.0, 66.0, 119.0, 22.0 ],
"text" : "metro 150 @active 1"
}

}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 119.0, 173.0, 100.0, 22.0 ],
"text" : "/test/message $1"
}

}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 119.0, 689.0, 135.0, 22.0 ],
"text" : "udpsend localhost 7404"
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"midpoints" : [ 168.5, 537.0, 128.5, 537.0 ],
"order" : 1,
"source" : [ "obj-12", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-10", 1 ],
"midpoints" : [ 168.5, 416.0, 237.75, 416.0 ],
"order" : 0,
"source" : [ "obj-12", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-14", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-15", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-23", 0 ],
"source" : [ "obj-18", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"source" : [ "obj-19", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"source" : [ "obj-20", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"midpoints" : [ 208.5, 637.5, 128.5, 637.5 ],
"order" : 1,
"source" : [ "obj-23", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"midpoints" : [ 208.5, 617.0, 349.75, 617.0 ],
"order" : 0,
"source" : [ "obj-23", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"order" : 1,
"source" : [ "obj-4", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"midpoints" : [ 128.5, 204.5, 303.5, 204.5 ],
"order" : 0,
"source" : [ "obj-4", 0 ]
}

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

}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-6", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-9", 0 ]
}

}
],
"dependency_cache" : [ ],
"autosave" : 0
}

}
Loading

0 comments on commit e8b77d3

Please sign in to comment.