Improved Max 6 Patch for the Interactive Basketball Hoop

Simply copy the following raw data and paste it into your own Max 6 patch.  Back to Hoop Dreams: Programming Problems.

{
“boxes” : [ {
“box” : {
“maxclass” : “newobj”,
“text” : “trigger 0 l”,
“id” : “obj-16”,
“fontname” : “Arial”,
“numinlets” : 1,
“numoutlets” : 2,
“fontsize” : 12.0,
“outlettype” : [ “int”, “” ],
“patching_rect” : [ 498.0, 51.0, 61.0, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “message”,
“text” : “0”,
“id” : “obj-13”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 1,
“fontsize” : 12.0,
“outlettype” : [ “” ],
“patching_rect” : [ 120.5, 445.0, 32.5, 18.0 ]
}
}
,  {
“box” : {
“maxclass” : “message”,
“text” : “1”,
“id” : “obj-6”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 1,
“fontsize” : 12.0,
“outlettype” : [ “” ],
“patching_rect” : [ 279.75, 343.0, 32.5, 18.0 ]
}
}
,  {
“box” : {
“maxclass” : “comment”,
“text” : “RESET”,
“presentation” : 1,
“id” : “obj-68”,
“fontname” : “Arial”,
“frgb” : 0.0,
“numinlets” : 1,
“numoutlets” : 0,
“fontsize” : 20.0,
“presentation_rect” : [ 684.0, 86.5, 230.0, 29.0 ],
“patching_rect” : [ 564.0, 11.0, 230.0, 29.0 ]
}
}
,  {
“box” : {
“maxclass” : “comment”,
“text” : “SCORE”,
“presentation” : 1,
“id” : “obj-46”,
“fontname” : “Arial”,
“frgb” : 0.0,
“numinlets” : 1,
“numoutlets” : 0,
“fontsize” : 20.0,
“presentation_rect” : [ 409.5, 21.0, 236.0, 29.0 ],
“patching_rect” : [ 564.0, 209.5, 236.0, 29.0 ]
}
}
,  {
“box” : {
“maxclass” : “number”,
“varname” : “number”,
“presentation” : 1,
“id” : “obj-39”,
“fontname” : “Arial”,
“parameter_enable” : 0,
“numinlets” : 1,
“numoutlets” : 2,
“fontsize” : 72.0,
“presentation_rect” : [ 409.5, 52.0, 163.0, 87.0 ],
“outlettype” : [ “int”, “bang” ],
“patching_rect” : [ 564.0, 96.0, 163.0, 87.0 ]
}
}
,  {
“box” : {
“maxclass” : “newobj”,
“text” : “counter”,
“id” : “obj-32”,
“fontname” : “Arial”,
“numinlets” : 5,
“numoutlets” : 4,
“fontsize” : 12.0,
“outlettype” : [ “int”, “”, “”, “int” ],
“patching_rect” : [ 311.75, 163.0, 73.0, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “number”,
“id” : “obj-14”,
“fontname” : “Arial”,
“parameter_enable” : 0,
“numinlets” : 1,
“numoutlets” : 2,
“fontsize” : 12.0,
“outlettype” : [ “int”, “bang” ],
“patching_rect” : [ 381.5, 59.0, 50.0, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “newobj”,
“text” : “key”,
“id” : “obj-12”,
“fontname” : “Arial”,
“numinlets” : 0,
“numoutlets” : 4,
“fontsize” : 12.0,
“outlettype” : [ “int”, “int”, “int”, “int” ],
“patching_rect” : [ 279.75, 11.0, 59.5, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “newobj”,
“text” : “select 32”,
“id” : “obj-10”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 2,
“fontsize” : 12.0,
“outlettype” : [ “bang”, “” ],
“patching_rect” : [ 279.75, 59.0, 59.0, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “button”,
“id” : “obj-4”,
“numinlets” : 1,
“numoutlets” : 1,
“outlettype” : [ “bang” ],
“patching_rect” : [ 279.75, 96.0, 20.0, 20.0 ]
}
}
,  {
“box” : {
“maxclass” : “live.gain~”,
“varname” : “live.gain~”,
“presentation” : 1,
“id” : “obj-5”,
“parameter_enable” : 1,
“numinlets” : 2,
“fontface” : 0,
“numoutlets” : 5,
“fontsize” : 12.0,
“showname” : 0,
“presentation_rect” : [ 480.5, 278.0, 54.0, 136.0 ],
“outlettype” : [ “signal”, “signal”, “”, “float”, “list” ],
“patching_rect” : [ 50.5, 445.0, 54.0, 136.0 ],
“saved_attribute_attributes” : {
“valueof” : {
“parameter_unitstyle” : 4,
“parameter_mmax” : 6.0,
“parameter_mmin” : -70.0,
“parameter_initial” : [ -70 ],
“parameter_type” : 0,
“parameter_initial_enable” : 1,
“parameter_shortname” : “live.gain~”,
“parameter_longname” : “live.gain~”
}
}
}
}
,  {
“box” : {
“maxclass” : “ezdac~”,
“prototypename” : “helpfile”,
“presentation” : 1,
“id” : “obj-7”,
“local” : 1,
“numinlets” : 2,
“border” : 1.75,
“numoutlets” : 0,
“presentation_rect” : [ 480.5, 428.0, 44.0, 44.0 ],
“bgcolor” : [ 1.0, 1.0, 1.0, 1.0 ],
“patching_rect” : [ 50.5, 595.0, 44.0, 44.0 ],
“bordercolor” : [ 0.501961, 0.501961, 0.501961, 1.0 ]
}
}
,  {
“box” : {
“maxclass” : “newobj”,
“text” : “sfplay~ 2”,
“id” : “obj-43”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 3,
“fontsize” : 13.0,
“outlettype” : [ “signal”, “signal”, “bang” ],
“patching_rect” : [ 50.5, 398.0, 89.0, 21.0 ],
“save” : [ “#N”, “sfplay~”, “”, 2, 40320, 0, “”, “;” ]
}
}
,  {
“box” : {
“maxclass” : “message”,
“text” : “open”,
“id” : “obj-41”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 1,
“fontsize” : 13.0,
“outlettype” : [ “” ],
“patching_rect” : [ 50.5, 352.0, 39.0, 19.0 ]
}
}
,  {
“box” : {
“maxclass” : “message”,
“text” : “set 0”,
“presentation” : 1,
“id” : “obj-66”,
“fontname” : “Arial”,
“numinlets” : 2,
“numoutlets” : 1,
“fontsize” : 20.0,
“presentation_rect” : [ 619.0, 86.5, 55.0, 27.0 ],
“outlettype” : [ “” ],
“patching_rect” : [ 498.0, 11.0, 54.0, 27.0 ]
}
}
 ],
“lines” : [ {
“patchline” : {
“source” : [ “obj-66”, 0 ],
“destination” : [ “obj-16”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-6”, 0 ],
“destination” : [ “obj-43”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-5”, 0 ],
“destination” : [ “obj-7”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-5”, 1 ],
“destination” : [ “obj-7”, 1 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-43”, 0 ],
“destination” : [ “obj-5”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-43”, 1 ],
“destination” : [ “obj-5”, 1 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-43”, 2 ],
“destination” : [ “obj-13”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-41”, 0 ],
“destination” : [ “obj-43”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-4”, 0 ],
“destination” : [ “obj-6”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-4”, 0 ],
“destination” : [ “obj-32”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-32”, 0 ],
“destination” : [ “obj-39”, 0 ],
“hidden” : 0,
“midpoints” : [ 321.25, 195.0, 549.0, 195.0, 549.0, 93.0, 573.5, 93.0 ],
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-16”, 1 ],
“destination” : [ “obj-39”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-16”, 0 ],
“destination” : [ “obj-32”, 3 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-13”, 0 ],
“destination” : [ “obj-43”, 0 ],
“hidden” : 0,
“midpoints” : [ 130.0, 465.0, 117.0, 465.0, 117.0, 429.0, 36.0, 429.0, 36.0, 393.0, 60.0, 393.0 ],
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-12”, 0 ],
“destination” : [ “obj-14”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-12”, 0 ],
“destination” : [ “obj-10”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
,  {
“patchline” : {
“source” : [ “obj-10”, 0 ],
“destination” : [ “obj-4”, 0 ],
“hidden” : 0,
“disabled” : 0
}
}
 ],
“appversion” : {
“major” : 6,
“minor” : 0,
“revision” : 8
}
}
Advertisements

One thought on “Improved Max 6 Patch for the Interactive Basketball Hoop

  1. Pingback: Hoop Dreams: Programming Problems | Writing History and other things

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s