Skip to content

Instantly share code, notes, and snippets.

@lkishfy
Created October 30, 2018 14:41
Show Gist options
  • Select an option

  • Save lkishfy/56f7fe2a0fca2ccd8d4e881d5da25308 to your computer and use it in GitHub Desktop.

Select an option

Save lkishfy/56f7fe2a0fca2ccd8d4e881d5da25308 to your computer and use it in GitHub Desktop.
Random Subpatch
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 21 && $i1 < 26 && $i2 > 21 && $i2 < 26 then bang",
"patching_rect" : [ 376.399993896484375, 679.00006103515625, 315.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-31",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 18 && $i1 < 22 && $i2 > 18 && $i2 < 22 then bang",
"patching_rect" : [ 376.399993896484375, 639.20001220703125, 315.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-28",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 15 && $i1 < 19 && $i2 > 15 && $i2 < 19 then bang",
"patching_rect" : [ 377.399993896484375, 602.60003662109375, 315.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-29",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 11 && $i1 < 16 && $i2 > 11 && $i2 < 16 then bang",
"patching_rect" : [ 377.399993896484375, 565.20001220703125, 313.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-30",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 8 && $i1 < 12 && $i2 > 8 && $i2 < 12 then bang",
"patching_rect" : [ 377.399993896484375, 514.5999755859375, 301.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-27",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 5 && $i1 < 9 && $i2 > 5 && $i2 < 9 then bang",
"patching_rect" : [ 377.399993896484375, 468.4000244140625, 288.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-26",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 > 2 && $i1 < 6 && $i2 > 2 && $i2 < 6 then bang",
"patching_rect" : [ 377.399993896484375, 417.4000244140625, 288.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-25",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "15",
"patching_rect" : [ 461.0, 200.0, 29.5, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-19",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 52.599990844726562, 473.20001220703125, 24.0, 24.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-17",
"outlettype" : [ "bang" ],
"parameter_enable" : 0
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "17",
"patching_rect" : [ 811.20001220703125, 332.000030517578125, 29.5, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-15",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $i1 >= 0 && $i1 < 3 && $i2 >= 0 && $i2 < 3 then bang",
"patching_rect" : [ 381.79998779296875, 369.600006103515625, 302.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-5",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "25",
"patching_rect" : [ 461.0, 68.0, 30.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-7",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"patching_rect" : [ 434.0, 27.0, 58.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-3",
"outlettype" : [ "bang" ]
}
}
, {
"box" : {
"maxclass" : "number",
"patching_rect" : [ 334.0, 65.0, 50.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-9",
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"patching_rect" : [ 124.0, 106.0, 58.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-6",
"outlettype" : [ "bang" ]
}
}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 270.4998779296875, 375.0, 30.0, 30.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-2",
"comment" : "",
"index" : 1
}
}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 238.5, 81.0, 30.0, 30.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-1",
"outlettype" : [ "bang" ],
"comment" : "",
"index" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "15",
"patching_rect" : [ 149.0, 379.0, 50.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-311",
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "i",
"fontname" : "Arial",
"patching_rect" : [ 270.5, 313.0, 83.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-304",
"outlettype" : [ "int" ],
"fontsize" : 12.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 1 0",
"fontname" : "Arial",
"patching_rect" : [ 238.5, 268.0, 83.0, 22.0 ],
"numinlets" : 3,
"numoutlets" : 3,
"id" : "obj-305",
"outlettype" : [ "bang", "bang", "" ],
"fontsize" : 12.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "==",
"fontname" : "Arial",
"patching_rect" : [ 238.5, 244.0, 83.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-306",
"outlettype" : [ "int" ],
"fontsize" : 12.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "i -1",
"fontname" : "Arial",
"patching_rect" : [ 302.4998779296875, 220.0, 32.5, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-307",
"outlettype" : [ "int" ],
"fontsize" : 12.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t i i b i",
"fontname" : "Arial",
"patching_rect" : [ 238.5, 188.0, 115.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 4,
"id" : "obj-308",
"outlettype" : [ "int", "int", "bang", "int" ],
"fontsize" : 12.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random #1",
"fontname" : "Arial",
"patching_rect" : [ 238.5, 164.0, 83.0, 22.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-4",
"outlettype" : [ "int" ],
"fontsize" : 12.0
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-19", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-19", 1 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-5", 1 ],
"order" : 4
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-5", 0 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-31", 0 ],
"order" : 6
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-28", 0 ],
"order" : 7
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-29", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-30", 0 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-27", 0 ],
"order" : 3
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-26", 0 ],
"order" : 4
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-25", 0 ],
"order" : 5
}
}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-31", 1 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-28", 1 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-29", 1 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-30", 1 ],
"order" : 3
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-27", 1 ],
"order" : 5
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-26", 1 ],
"order" : 6
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-25", 1 ],
"order" : 7
}
}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-307", 0 ],
"destination" : [ "obj-15", 1 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-307", 0 ],
"destination" : [ "obj-15", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-304", 0 ],
"destination" : [ "obj-311", 1 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-304", 0 ],
"destination" : [ "obj-311", 0 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-4", 1 ]
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-9", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-308", 0 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-308", 1 ],
"destination" : [ "obj-307", 1 ],
"midpoints" : [ 280.0, 213.500010132789612, 325.4998779296875, 213.500010132789612 ]
}
}
, {
"patchline" : {
"source" : [ "obj-308", 2 ],
"destination" : [ "obj-307", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-308", 0 ],
"destination" : [ "obj-306", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-308", 3 ],
"destination" : [ "obj-304", 1 ]
}
}
, {
"patchline" : {
"source" : [ "obj-307", 0 ],
"destination" : [ "obj-306", 1 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-306", 0 ],
"destination" : [ "obj-305", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-305", 0 ],
"destination" : [ "obj-4", 0 ],
"midpoints" : [ 248.0, 292.000010132789612, 230.4998779296875, 292.000010132789612, 230.4998779296875, 156.000010132789612, 248.0, 156.000010132789612 ]
}
}
, {
"patchline" : {
"source" : [ "obj-305", 1 ],
"destination" : [ "obj-304", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-304", 0 ],
"destination" : [ "obj-2", 0 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-4", 0 ]
}
}
],
"appversion" : {
"major" : 8,
"minor" : 0,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment