Forums > MaxMSP

Delaying Toggle

July 1, 2008 | 12:31 pm

Hi,

What I am trying to achieve is to delay a toggle signal until my patch is at its 1st Bar. (I have set up a universal beat/bar time for the patch. I cannot use the del or pipe objects as i don’t have the delay time in MS. Hopefully the patch below will explain. I am using Max 5.0.3

Thanks for any help

P.S Sorry for the long patch text but I don’t really know how to save a patch as a neat txt file in Max 5
{
"patcher" : {
"fileversion" : 1,
"rect" : [ 0.0, 38.0, 1280.0, 676.0 ],
"bglocked" : 0,
"defrect" : [ 0.0, 38.0, 1280.0, 676.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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 481.0, 278.0, 20.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-9",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"fontsize" : 9.0,
"patching_rect" : [ 284.0, 257.0, 32.5, 15.0 ],
"numinlets" : 2,
"hidden" : 1,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-8",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ Loop1 999999",
"fontsize" : 10.0,
"patching_rect" : [ 284.0, 284.0, 128.0, 19.0 ],
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-376",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p Looper 1",
"fontsize" : 9.0,
"patching_rect" : [ 215.0, 285.0, 59.5, 17.0 ],
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-418",
"outlettype" : [ "signal" ],
"patcher" : {
"fileversion" : 1,
"rect" : [ 5.0, 42.0, 942.0, 462.0 ],
"bglocked" : 0,
"defrect" : [ 5.0, 42.0, 942.0, 462.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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 151.0, 378.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-1",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 149.0, 154.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-8",
"outlettype" : [ "int" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "startloop",
"fontsize" : 9.0,
"patching_rect" : [ 73.0, 257.0, 43.0, 15.0 ],
"numinlets" : 2,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-10",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~",
"fontsize" : 9.0,
"patching_rect" : [ 209.0, 269.0, 26.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-11",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "groove~ Loop1",
"fontsize" : 9.0,
"patching_rect" : [ 151.0, 324.0, 71.0, 17.0 ],
"numinlets" : 3,
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-12",
"outlettype" : [ "signal", "signal" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "loop $1",
"linecount" : 2,
"fontsize" : 10.0,
"patching_rect" : [ 151.0, 269.0, 50.0, 27.0 ],
"numinlets" : 2,
"fontname" : "Courier New",
"numoutlets" : 1,
"id" : "obj-13",
"outlettype" : [ "" ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ 160.5, 302.0, 160.5, 302.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ 218.5, 306.0, 160.5, 306.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ 82.5, 309.0, 160.5, 309.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}
,
"saved_object_attributes" : {
"default_fontface" : 0,
"fontsize" : 12.0,
"globalpatchername" : "",
"default_fontname" : "Arial",
"default_fontsize" : 12.0,
"fontname" : "Arial",
"fontface" : 0
}

}

}
, {
"box" : {
"maxclass" : "toggle",
"patching_rect" : [ 214.606079, 226.224182, 28.0, 28.0 ],
"presentation" : 1,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-7",
"outlettype" : [ "int" ],
"presentation_rect" : [ 214.606079, 226.224182, 14.826447, 14.826447 ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "What I want to try and do is for the Toggle not to send its signal until the Bar Number is 1",
"linecount" : 2,
"presentation_linecount" : 10,
"fontsize" : 11.0,
"patching_rect" : [ 144.0, 183.0, 240.0, 33.0 ],
"presentation" : 1,
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 0,
"id" : "obj-6",
"presentation_rect" : [ 168.0, 171.0, 65.0, 139.0 ]
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"patching_rect" : [ 551.0, 460.0, 45.0, 45.0 ],
"numinlets" : 2,
"numoutlets" : 0,
"id" : "obj-1"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "1",
"fontsize" : 9.0,
"patching_rect" : [ 434.0, 48.0, 15.0, 15.0 ],
"numinlets" : 2,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-168",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clearall",
"fontsize" : 9.0,
"patching_rect" : [ 302.0, 98.0, 42.0, 15.0 ],
"numinlets" : 2,
"hidden" : 1,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-2",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "store 1",
"fontsize" : 9.0,
"patching_rect" : [ 299.0, 67.0, 36.0, 15.0 ],
"numinlets" : 2,
"hidden" : 1,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-3",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "preset",
"patching_rect" : [ 344.0, 95.0, 47.0, 27.0 ],
"bubblesize" : 8,
"numinlets" : 1,
"numoutlets" : 4,
"spacing" : 2,
"id" : "obj-4",
"outlettype" : [ "preset", "int", "preset", "int" ],
"margin" : 4,
"preset_data" : [ {
"number" : 1,
"data" : [ 5, "obj-12", "slider", "float", 4.0, 5, "obj-28", "slider", "float", 1.0, 5, "obj-410", "toggle", "int", 0, 5, "obj-409", "flonum", "float", 135.0, 5, "obj-7", "toggle", "int", 0 ]
}
]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Load Settings",
"fontsize" : 9.0,
"patching_rect" : [ 451.0, 46.0, 62.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 0,
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Off",
"fontsize" : 11.0,
"patching_rect" : [ 574.0, 351.0, 26.0, 20.0 ],
"presentation" : 1,
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 0,
"id" : "obj-402",
"presentation_rect" : [ 1245.173584, 613.0, 41.0, 20.0 ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p Metronome",
"fontsize" : 9.0,
"patching_rect" : [ 529.0, 415.0, 92.0, 17.0 ],
"numinlets" : 4,
"fontname" : "Tahoma",
"numoutlets" : 5,
"id" : "obj-407",
"outlettype" : [ "int", "bang", "signal", "int", "float" ],
"patcher" : {
"fileversion" : 1,
"rect" : [ 4.0, 53.0, 904.0, 644.0 ],
"bglocked" : 0,
"defrect" : [ 4.0, 53.0, 904.0, 644.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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 616.0, 268.0, 25.0, 25.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-89",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 568.0, 221.0, 61.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-87",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 1 4",
"fontsize" : 9.0,
"patching_rect" : [ 568.0, 200.0, 157.0, 17.0 ],
"numinlets" : 5,
"fontname" : "Arial",
"numoutlets" : 4,
"id" : "obj-86",
"outlettype" : [ "int", "", "", "int" ]
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 237.0, 393.0, 25.0, 25.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-84",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 205.0, 318.0, 25.0, 25.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-83",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 291.0, 107.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-81",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 679.0, 419.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-65",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"patching_rect" : [ 753.0, 307.0, 20.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-64",
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 581.0, 518.0, 69.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-63",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "gswitch2",
"patching_rect" : [ 565.0, 440.0, 39.0, 32.0 ],
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-62",
"outlettype" : [ "", "" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 421.0, 523.0, 69.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-61",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 321.0, 708.0, 69.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-59",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "gain~",
"patching_rect" : [ 290.0, 561.0, 20.0, 140.0 ],
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-58",
"outlettype" : [ "signal", "int" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 206.0, 292.0, 69.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-54",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 289.0, 707.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-52",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 291.0, 9.0, 17.0, 17.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-51",
"outlettype" : [ "bang" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p Beat Bang",
"fontsize" : 9.0,
"patching_rect" : [ 77.0, 275.0, 66.272728, 17.0 ],
"numinlets" : 2,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-50",
"outlettype" : [ "int" ],
"patcher" : {
"fileversion" : 1,
"rect" : [ 131.0, 79.0, 719.0, 492.0 ],
"bglocked" : 0,
"defrect" : [ 131.0, 79.0, 719.0, 492.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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 286.0, 119.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-8",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 375.0, 41.0, 25.0, 25.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-6",
"outlettype" : [ "" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 12.0,
"patching_rect" : [ 418.0, 169.0, 84.0, 20.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-10",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 12.0,
"patching_rect" : [ 360.0, 285.0, 34.0, 20.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-7",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 285.0, 75.0, 25.0, 25.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-5",
"outlettype" : [ "" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 360.0, 325.0, 25.0, 25.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-4",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Tempo",
"fontsize" : 9.0,
"patching_rect" : [ 420.0, 75.0, 37.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-3"
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 12.0,
"patching_rect" : [ 375.0, 74.0, 43.0, 20.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-2",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 285.0, 315.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-21",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "1st Beat",
"fontsize" : 9.0,
"patching_rect" : [ 300.0, 315.0, 43.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-24"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 60000.",
"fontsize" : 9.0,
"patching_rect" : [ 375.0, 135.0, 53.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-28",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "!/ 1.",
"fontsize" : 9.0,
"patching_rect" : [ 375.0, 105.0, 31.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-29",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 1 4",
"fontsize" : 9.0,
"patching_rect" : [ 285.0, 255.0, 66.0, 17.0 ],
"numinlets" : 5,
"fontname" : "Arial",
"numoutlets" : 4,
"id" : "obj-33",
"outlettype" : [ "int", "", "", "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route 1",
"fontsize" : 9.0,
"patching_rect" : [ 285.0, 285.0, 43.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-34",
"outlettype" : [ "", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 120",
"fontsize" : 9.0,
"patching_rect" : [ 285.0, 195.0, 58.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-35",
"outlettype" : [ "bang" ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-33", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 252.0, 294.5, 252.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-34", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-35", 1 ],
"hidden" : 0,
"midpoints" : [ 384.5, 187.0, 333.5, 187.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 307.0, 294.0, 307.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ 384.5, 125.0, 384.5, 125.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 278.0, 369.5, 278.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ 384.5, 162.0, 427.5, 162.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 102.0, 295.0, 114.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 295.0, 135.0, 294.5, 192.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}
,
"saved_object_attributes" : {
"default_fontface" : 0,
"fontsize" : 12.0,
"globalpatchername" : "",
"default_fontname" : "Arial",
"default_fontsize" : 12.0,
"fontname" : "Arial",
"fontface" : 0
}

}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 62.0, 79.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-1",
"outlettype" : [ "" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clearall",
"fontsize" : 9.0,
"patching_rect" : [ 46.0, 210.0, 42.0, 15.0 ],
"numinlets" : 2,
"hidden" : 1,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-2",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "store 1",
"fontsize" : 9.0,
"patching_rect" : [ 47.0, 192.0, 36.0, 15.0 ],
"numinlets" : 2,
"hidden" : 1,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-3",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "preset",
"patching_rect" : [ 61.0, 141.0, 47.0, 27.0 ],
"bubblesize" : 8,
"numinlets" : 1,
"numoutlets" : 4,
"spacing" : 2,
"id" : "obj-4",
"outlettype" : [ "preset", "int", "preset", "int" ],
"margin" : 4,
"preset_data" : [ {
"number" : 1,
"data" : [ 5, "obj-40", "flonum", "float", 0.33, 5, "obj-39", "flonum", "float", 28.0, 5, "obj-38", "flonum", "float", 0.15, 5, "obj-37", "flonum", "float", 126.0, 5, "obj-23", "number", "int", 72, 5, "obj-22", "number", "int", 84, 5, "obj-16", "flonum", "float", 444.444458, 5, "obj-13", "flonum", "float", 1.0, 5, "obj-8", "number", "int", 30, 5, "obj-54", "number", "int", 3, 6, "obj-58", "gain~", "list", 120, 10.0, 5, "obj-59", "number", "int", 120, 5, "obj-61", "number", "int", 1, 5, "obj-62", "gswitch2", "int", 0, 5, "obj-63", "number", "int", 120, 5, "obj-64", "toggle", "int", 0 ]
}
]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Load Settings",
"fontsize" : 9.0,
"patching_rect" : [ 56.0, 124.0, 62.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Tahoma",
"numoutlets" : 0,
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 402.0, 260.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-6",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 4",
"fontsize" : 9.0,
"patching_rect" : [ 402.0, 238.0, 27.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Tahoma",
"numoutlets" : 1,
"id" : "obj-7",
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 538.0, 299.0, 35.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Tahoma",
"numoutlets" : 2,
"id" : "obj-8",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 505.0, 25.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-9",
"outlettype" : [ "float" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 349.0, 25.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-10",
"outlettype" : [ "int" ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "mtof",
"fontsize" : 9.0,
"patching_rect" : [ 305.0, 391.0, 31.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-12",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"varname" : "Volume[1]",
"fontsize" : 12.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 496.0, 299.0, 25.396093, 20.0 ],
"minimum" : 0.0,
"numinlets" : 1,
"triscale" : 0.9,
"maximum" : 1.0,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-13",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Vol.",
"fontsize" : 9.0,
"patching_rect" : [ 493.0, 280.0, 27.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-14"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Gate",
"fontsize" : 9.0,
"patching_rect" : [ 542.0, 282.0, 31.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-15"
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 402.0, 213.0, 61.0, 17.0 ],
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-16",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "miliseconds",
"fontsize" : 9.0,
"patching_rect" : [ 463.0, 214.0, 77.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-19"
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 305.0, 328.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-20",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 375.0, 327.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-21",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"varname" : "AccentPitch",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 392.0, 327.0, 35.0, 17.0 ],
"format" : 4,
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-22",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"varname" : "Pitch",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 322.0, 327.0, 35.0, 17.0 ],
"format" : 4,
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-23",
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "1st Pitch",
"fontsize" : 9.0,
"patching_rect" : [ 392.0, 313.0, 43.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-24"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "int",
"fontsize" : 9.0,
"patching_rect" : [ 375.0, 348.0, 27.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-25",
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "2nd Pitch",
"fontsize" : 9.0,
"patching_rect" : [ 320.0, 313.0, 46.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-26"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "int",
"fontsize" : 9.0,
"patching_rect" : [ 305.0, 350.0, 27.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-27",
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 60000.",
"fontsize" : 9.0,
"patching_rect" : [ 380.0, 127.0, 53.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-28",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "!/ 1.",
"fontsize" : 9.0,
"patching_rect" : [ 505.0, 94.0, 31.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-29",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "float",
"fontsize" : 9.0,
"patching_rect" : [ 475.0, 339.0, 31.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-30",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 475.0, 315.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-31",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "del 50",
"fontsize" : 9.0,
"patching_rect" : [ 507.0, 338.0, 38.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-32",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 1 4",
"fontsize" : 9.0,
"patching_rect" : [ 300.0, 203.0, 73.0, 17.0 ],
"numinlets" : 5,
"fontname" : "Arial",
"numoutlets" : 4,
"id" : "obj-33",
"outlettype" : [ "int", "", "", "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route 1",
"fontsize" : 9.0,
"patching_rect" : [ 305.0, 229.0, 43.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-34",
"outlettype" : [ "", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 120",
"fontsize" : 9.0,
"patching_rect" : [ 292.0, 152.0, 58.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-35",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"fontsize" : 9.0,
"patching_rect" : [ 510.0, 361.0, 16.0, 15.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-36",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"varname" : "Release",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 520.0, 415.0, 35.0, 17.0 ],
"minimum" : 0.0,
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-37",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"varname" : "Sustain",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 482.0, 415.0, 35.0, 17.0 ],
"minimum" : 0.0,
"numinlets" : 1,
"triscale" : 0.9,
"maximum" : 1.0,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-38",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"varname" : "Decay",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 444.0, 415.0, 35.0, 17.0 ],
"minimum" : 0.0,
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-39",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"varname" : "Attack",
"fontsize" : 9.0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"patching_rect" : [ 406.0, 415.0, 35.0, 17.0 ],
"minimum" : 0.0,
"numinlets" : 1,
"triscale" : 0.9,
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"fontname" : "Arial",
"numoutlets" : 2,
"id" : "obj-40",
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "adsr~",
"fontsize" : 9.0,
"patching_rect" : [ 368.0, 439.0, 162.0, 17.0 ],
"numinlets" : 5,
"fontname" : "Arial",
"numoutlets" : 4,
"id" : "obj-41",
"outlettype" : [ "signal", "signal", "", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.",
"fontsize" : 9.0,
"patching_rect" : [ 289.0, 529.0, 41.0, 17.0 ],
"numinlets" : 2,
"fontname" : "Arial",
"numoutlets" : 1,
"id" : "obj-42",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "A",
"fontsize" : 9.0,
"patching_rect" : [ 418.0, 399.0, 16.0, 17.0 ],
"numinlets" : 1,
"fontname" : "Arial",
"numoutlets" : 0,
"id" : "obj-43"
}

}
, {
"box" : {
"maxclass" : "comment",
"text&


July 2, 2008 | 12:21 am

(make sure you have updated your version of Max to 5.0.3 so that you can paste the compressed text)

How about this?

– Pasted Max Patch, click to expand. –

July 2, 2008 | 10:00 am

Hey thats excellent thanks! seems so simple now I’ve seen it.

Also I am running 5.0.3 but my text files still aren’t compressed, is there a setting I have to use?

Thanks again


July 2, 2008 | 10:52 am

No worries

If you ‘Select All’ (in the edit menu), you can then choose ‘Copy Compressed’ (also in the edit menu).


Viewing 4 posts - 1 through 4 (of 4 total)