Create a gist now

Instantly share code, notes, and snippets.

@nbriz /unfriend4.js
Last active Aug 29, 2015

{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "WARNING: THIS IS VERY GLITCHY",
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 464.0, 344.0, 207.0, 20.0 ],
"id" : "obj-10",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "<< click to test only once",
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 103.0, 197.0, 150.0, 20.0 ],
"id" : "obj-6",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "<< click to start",
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 443.0, 48.0, 96.0, 20.0 ],
"id" : "obj-3",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 300",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 539.0, 239.0, 63.0, 20.0 ],
"id" : "obj-138",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 300",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 83.0, 239.0, 63.0, 20.0 ],
"id" : "obj-110",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "moveto 1351 324",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 539.0, 274.0, 103.0, 18.0 ],
"id" : "obj-91",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 2800",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 602.0, 239.0, 69.0, 20.0 ],
"id" : "obj-85",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 300",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 311.0, 239.0, 63.0, 20.0 ],
"id" : "obj-81",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 700",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 476.0, 239.0, 63.0, 20.0 ],
"id" : "obj-76",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "click",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 476.0, 274.0, 34.0, 18.0 ],
"id" : "obj-77",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "move 0 180",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 408.0, 274.0, 73.0, 18.0 ],
"id" : "obj-78",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 300",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 408.0, 239.0, 63.0, 20.0 ],
"id" : "obj-79",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "moveto 903 185",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.0, 274.0, 97.0, 18.0 ],
"id" : "obj-80",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "if u need to stop the patch, press the 'esc' key \n( u need to have Max on top not behind the browser, in order to escape )",
"linecount" : 2,
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 11.0, 15.0, 430.0, 33.0 ],
"id" : "obj-75",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "1",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 43.5, 88.0, 32.5, 18.0 ],
"id" : "obj-72",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 11.0, 88.0, 32.5, 18.0 ],
"id" : "obj-67",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "gate",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 11.0, 130.0, 34.0, 20.0 ],
"id" : "obj-58",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 27",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 11.0, 68.0, 43.0, 20.0 ],
"id" : "obj-57",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "key",
"numinlets" : 0,
"fontsize" : 12.0,
"numoutlets" : 4,
"outlettype" : [ "int", "int", "int", "int" ],
"patching_rect" : [ 11.0, 48.0, 59.5, 20.0 ],
"id" : "obj-54",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "key 36",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 250.0, 148.0, 46.0, 18.0 ],
"id" : "obj-46",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "aka.keyboard",
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 250.0, 166.0, 83.0, 20.0 ],
"id" : "obj-43",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 3000",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 250.0, 128.0, 69.0, 20.0 ],
"id" : "obj-41",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 1000",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 216.0, 108.0, 69.0, 20.0 ],
"id" : "obj-39",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "click",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 216.0, 128.0, 34.0, 18.0 ],
"id" : "obj-40",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 1000",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 182.0, 88.0, 69.0, 20.0 ],
"id" : "obj-32",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "click",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 182.0, 108.0, 34.0, 18.0 ],
"id" : "obj-33",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 421.0, 48.0, 20.0, 20.0 ],
"id" : "obj-34"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "moveto 54 734",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 88.0, 90.0, 18.0 ],
"id" : "obj-37",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "aka.mouse",
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 166.0, 69.0, 20.0 ],
"id" : "obj-38",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 700",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 248.0, 239.0, 63.0, 20.0 ],
"id" : "obj-12",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "click",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 248.0, 274.0, 34.0, 18.0 ],
"id" : "obj-11",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 83.0, 197.0, 20.0, 20.0 ],
"id" : "obj-9"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "move 0 180",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 180.0, 274.0, 73.0, 18.0 ],
"id" : "obj-7",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 300",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 180.0, 239.0, 63.0, 20.0 ],
"id" : "obj-5",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "moveto 489 185",
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 274.0, 97.0, 18.0 ],
"id" : "obj-4",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "aka.mouse",
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 344.0, 69.0, 20.0 ],
"id" : "obj-2",
"fontname" : "Arial"
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-72", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-91", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-85", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-110", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-85", 0 ],
"destination" : [ "obj-58", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-81", 0 ],
"destination" : [ "obj-80", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-81", 0 ],
"destination" : [ "obj-79", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-80", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-79", 0 ],
"destination" : [ "obj-78", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-79", 0 ],
"destination" : [ "obj-76", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-78", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-77", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-76", 0 ],
"destination" : [ "obj-77", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-76", 0 ],
"destination" : [ "obj-138", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-72", 0 ],
"destination" : [ "obj-58", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-67", 0 ],
"destination" : [ "obj-58", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-58", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-57", 0 ],
"destination" : [ "obj-67", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-54", 0 ],
"destination" : [ "obj-57", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-46", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-46", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-38", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-41", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-37", 0 ],
"destination" : [ "obj-38", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-37", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-32", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-38", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-33", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-138", 0 ],
"destination" : [ "obj-91", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-81", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-110", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-110", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
],
"appversion" : {
"major" : 6,
"minor" : 0,
"revision" : 8
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment