Using keyMidi patch

Mar 15, 2009 at 6:42pm

Using keyMidi patch

Hello all, I’m extremely new to Max so please bear with me.

I just found the keyMidi patch in the ‘Extras’ and it does exactly what I need. However, I need to adapt it slightly so that the keyboard keys trigger an animation in Processing. Is there any way to open keyMidi as a patcher so objects can be added?

I’ve downloaded the MaxLink library so that Processing and Max can be linked, but just don’t know where to go from here.

Any help would be greatly appreciated! Thanks and I hope that made sense…

#42868
Mar 15, 2009 at 7:19pm

yes.. just need to press command and then click the patch with your mouse the click the two toggles with command pressed and you will have something similar to this

then youu can make it with most of the windows of options and extra stuff in MaxMSP

i put you and indexed file with the content of keymidi anyway

{
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "p keys",
"ignoreclick" : 0,
"outlettype" : [ "bang", "bang", "", "" ],
“fontface” : 0,
“fontsize” : 12.0,
“hidden” : 0,
“textcolor” : [ 0.0, 0.0, 0.0, 1.0 ],
“presentation_rect” : [ 0.0, 0.0, 0.0, 0.0 ],
“numinlets” : 0,
“id” : “obj-37″,
“fontname” : “Arial”,
“bgcolor” : [ 1.0, 1.0, 1.0, 1.0 ],
“background” : 0,
“color” : [ 0.7, 0.7, 0.7, 1.0 ],
“numoutlets” : 4,
“patching_rect” : [ 454.0, 355.0, 100.0, 20.0 ],
“presentation” : 0,
“patcher” : {
“fileversion” : 1,
“rect” : [ 0.0, 0.0, 640.0, 480.0 ],
“bglocked” : 0,
“defrect” : [ 0.0, 0.0, 640.0, 480.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,
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "pack",
"outlettype" : [ "" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-20″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 181.0, 271.0, 36.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “prepend set”,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-4″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 220.0, 272.0, 74.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 15 16 -1″,
“outlettype” : [ "bang", "bang", "bang", "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-16″,
“fontname” : “Arial”,
“numoutlets” : 4,
“patching_rect” : [ 155.0, 165.0, 84.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “p displayKeys”,
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-88″,
“fontname” : “Arial”,
“numoutlets” : 0,
“patching_rect” : [ 50.0, 219.0, 100.0, 20.0 ],
“patcher” : {
“fileversion” : 1,
“rect” : [ 433.0, 369.0, 383.0, 300.0 ],
“bglocked” : 0,
“defrect” : [ 433.0, 369.0, 383.0, 300.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,
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "p toLower",
"outlettype" : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-15″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 72.0, 63.0, 20.0 ],
“patcher” : {
“fileversion” : 1,
“rect” : [ 0.0, 0.0, 640.0, 480.0 ],
“bglocked” : 0,
“defrect” : [ 0.0, 0.0, 640.0, 480.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,
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "+ 32",
"outlettype" : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-9″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 50.0, 125.0, 34.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “split 65 96″,
“outlettype” : [ "int", "int" ],
“fontsize” : 12.0,
“numinlets” : 3,
“id” : “obj-7″,
“fontname” : “Arial”,
“numoutlets” : 2,
“patching_rect” : [ 50.0, 100.0, 65.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “inlet”,
“outlettype” : [ "int" ],
“numinlets” : 0,
“id” : “obj-12″,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 40.0, 25.0, 25.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “outlet”,
“numinlets” : 1,
“id” : “obj-13″,
“numoutlets” : 0,
“patching_rect” : [ 50.0, 205.0, 25.0, 25.0 ],
“comment” : “”
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-7", 1 ],
“destination” : [ "obj-13", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

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

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

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

}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “if $i2 != -1 then $i1″,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-1″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 100.0, 110.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “itoa”,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 3,
“id” : “obj-51″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 136.0, 46.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “prepend text”,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-49″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 169.0, 77.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sprintf send parent:parent::key[%i]“,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-48″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 175.0, 169.0, 193.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “pattrforward”,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-46″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 204.0, 75.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “inlet”,
“outlettype” : [ "int" ],
“numinlets” : 0,
“id” : “obj-86″,
“numoutlets” : 1,
“patching_rect” : [ 55.0, 40.0, 25.0, 25.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “inlet”,
“outlettype” : [ "int" ],
“numinlets” : 0,
“id” : “obj-87″,
“numoutlets” : 1,
“patching_rect” : [ 175.0, 40.0, 25.0, 25.0 ],
“comment” : “”
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-15", 0 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-86", 0 ],
“destination” : [ "obj-15", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-51", 0 ],
“destination” : [ "obj-49", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-49", 0 ],
“destination” : [ "obj-46", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

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

}
, {
“patchline” : {
“source” : [ "obj-87", 0 ],
“destination” : [ "obj-48", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-48", 0 ],
“destination” : [ "obj-46", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “p key2idx”,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-79″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 318.0, 130.0, 61.0, 20.0 ],
“patcher” : {
“fileversion” : 1,
“rect” : [ 45.0, 173.0, 646.0, 333.0 ],
“bglocked” : 0,
“defrect” : [ 45.0, 173.0, 646.0, 333.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,
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "t -1",
"outlettype" : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-41″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 456.0, 178.0, 28.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “16″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-2″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 432.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “15″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-1″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 408.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “14″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-40″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 384.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “13″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-39″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 360.470581, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “12″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-30″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 336.588226, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “11″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-29″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 312.705872, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “10″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-28″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 288.666656, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “9″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-27″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 264.799988, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “8″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-26″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 240.933319, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “7″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-25″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 217.066681, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “6″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-24″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 193.200012, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “5″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-23″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 169.333344, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “4″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-22″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 145.466675, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “3″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-21″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 121.600006, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “2″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-20″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 97.733337, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “1″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-19″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 73.866669, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “0″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-18″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 50.0, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 0 13 1 14 2 3 17 5 16 4 32 38 40 31 37 6 7″,
“outlettype” : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-16″,
“fontname” : “Arial”,
“numoutlets” : 18,
“patching_rect” : [ 50.0, 100.0, 425.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “inlet”,
“outlettype” : [ "int" ],
“numinlets” : 0,
“id” : “obj-69″,
“numoutlets” : 1,
“patching_rect” : [ 50.0, 40.0, 25.0, 25.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “outlet”,
“numinlets” : 1,
“id” : “obj-70″,
“numoutlets” : 0,
“patching_rect” : [ 228.0, 275.0, 25.0, 25.0 ],
“comment” : “”
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-18", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-19", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-20", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-21", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-22", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-23", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-24", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-26", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-27", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-28", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

}
, {
“patchline” : {
“source” : [ "obj-30", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-39", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-40", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-41", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-69", 0 ],
“destination” : [ "obj-16", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 14 ],
“destination” : [ "obj-40", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 13 ],
“destination” : [ "obj-39", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 12 ],
“destination” : [ "obj-30", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 0 ],
“destination” : [ "obj-18", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 1 ],
“destination” : [ "obj-19", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 2 ],
“destination” : [ "obj-20", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 3 ],
“destination” : [ "obj-21", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 4 ],
“destination” : [ "obj-22", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 5 ],
“destination” : [ "obj-23", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 6 ],
“destination” : [ "obj-24", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 7 ],
“destination” : [ "obj-25", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 8 ],
“destination” : [ "obj-26", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 9 ],
“destination” : [ "obj-27", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 10 ],
“destination” : [ "obj-28", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 11 ],
“destination” : [ "obj-29", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 17 ],
“destination” : [ "obj-41", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 15 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

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

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

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

}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “keyup”,
“outlettype” : [ "int", "int", "int", "int" ],
“fontsize” : 12.0,
“numinlets” : 0,
“id” : “obj-80″,
“fontname” : “Arial”,
“numoutlets” : 4,
“patching_rect” : [ 304.0, 100.0, 59.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “t i 0″,
“outlettype” : [ "int", "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-78″,
“fontname” : “Arial”,
“numoutlets” : 2,
“patching_rect” : [ 318.0, 218.0, 83.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “prepend in1″,
“outlettype” : [ "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-77″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 382.0, 246.0, 74.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “t i 127″,
“outlettype” : [ "int", "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-72″,
“fontname” : “Arial”,
“numoutlets” : 2,
“patching_rect” : [ 220.0, 218.0, 83.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “p key2idx”,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-71″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 155.0, 130.0, 61.0, 20.0 ],
“patcher” : {
“fileversion” : 1,
“rect” : [ 45.0, 173.0, 646.0, 333.0 ],
“bglocked” : 0,
“defrect” : [ 45.0, 173.0, 646.0, 333.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,
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "t -1",
"outlettype" : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-41″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 456.0, 178.0, 28.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “16″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-2″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 432.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “15″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-1″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 408.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “14″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-40″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 384.352936, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “13″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-39″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 360.470581, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “12″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-30″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 336.588226, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “11″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-29″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 312.705872, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “10″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-28″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 288.666656, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “9″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-27″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 264.799988, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “8″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-26″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 240.933319, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “7″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-25″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 217.066681, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “6″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-24″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 193.200012, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “5″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-23″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 169.333344, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “4″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-22″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 145.466675, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “3″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-21″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 121.600006, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “2″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-20″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 97.733337, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “1″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-19″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 73.866669, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “0″,
“outlettype” : [ "int" ],
“fontsize” : 12.0,
“numinlets” : 2,
“id” : “obj-18″,
“fontname” : “Arial”,
“numoutlets” : 1,
“patching_rect” : [ 50.0, 132.0, 32.5, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 0 13 1 14 2 3 17 5 16 4 32 38 40 31 37 6 7″,
“outlettype” : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "" ],
“fontsize” : 12.0,
“numinlets” : 1,
“id” : “obj-16″,
“fontname” : “Arial”,
“numoutlets” : 18,
“patching_rect” : [ 50.0, 100.0, 425.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “inlet”,
“outlettype” : [ "int" ],
“numinlets” : 0,
“id” : “obj-69″,
“numoutlets” : 1,
“patching_rect” : [ 50.0, 40.0, 25.0, 25.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “outlet”,
“numinlets” : 1,
“id” : “obj-70″,
“numoutlets” : 0,
“patching_rect” : [ 228.0, 275.0, 25.0, 25.0 ],
“comment” : “”
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-2", 0 ],
“destination” : [ "obj-70", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

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

}
, {
“patchline” : {
“source” : [ "obj-16", 15 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 17 ],
“destination” : [ "obj-41", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 11 ],
“destination” : [ "obj-29", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 10 ],
“destination” : [ "obj-28", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 9 ],
“destination” : [ "obj-27", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-16", 8 ],

#153452
Mar 15, 2009 at 7:58pm

That’s FANTASTIC! Thank you so much for your help.

#153453

You must be logged in to reply to this topic.