Forums > MaxMSP

Matrixctrl And Drum Sequencer – Patch Logic Question

May 27, 2008 | 7:03 pm

Hello, so I am attempting to build a drum sequencer using matrixctrl and feel like I am close to figuring out the logistics, but am stuck on one thing. With matrixctrl, how do I get it to output the value of just a single row?

Perhaps it will be of use to explain my logic for this sequencer. But first, here’s the very bare skeleton of what I have:

{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "- 1",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"patching_rect" : [ 174.0, 108.0, 32.5, 20.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-17"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 0 0 31",
"outlettype" : [ "int", "", "", "int" ],
"fontname" : "Arial",
"patching_rect" : [ 76.0, 146.0, 87.0, 20.0 ],
"numinlets" : 5,
"fontsize" : 12.0,
"numoutlets" : 4,
"id" : "obj-16"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "SAMPLE",
"linecount" : 6,
"fontname" : "Arial",
"patching_rect" : [ 191.0, 221.0, 22.0, 89.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"id" : "obj-15"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "STEP",
"fontname" : "Arial",
"patching_rect" : [ 459.0, 122.0, 45.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"id" : "obj-14"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p buffers",
"fontname" : "Arial",
"patching_rect" : [ 935.0, 64.0, 57.0, 20.0 ],
"numinlets" : 0,
"fontsize" : 12.0,
"numoutlets" : 0,
"id" : "obj-13",
"patcher" : {
"fileversion" : 1,
"rect" : [ 1280.0, 127.0, 558.0, 324.0 ],
"bglocked" : 0,
"defrect" : [ 1280.0, 127.0, 558.0, 324.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" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 412.0, 232.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-26"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 373.0, 232.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-27"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b16",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 373.0, 258.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-28"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 413.0, 168.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-29"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 374.0, 168.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-30"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b15",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 373.0, 194.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-31"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 413.0, 98.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-32"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 374.0, 98.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-33"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b14",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 374.0, 124.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-34"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 414.0, 34.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-35"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 375.0, 34.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-36"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b13",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 375.0, 58.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-37"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 305.0, 235.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-38"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 266.0, 235.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-39"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b12",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 266.0, 262.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-40"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 306.0, 171.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-41"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 267.0, 171.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-42"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b11",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 267.0, 196.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-43"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 306.0, 101.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-44"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 267.0, 101.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-45"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b10",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 267.0, 128.0, 72.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-46"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 307.0, 37.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-47"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 268.0, 37.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-48"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b9",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 268.0, 62.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-49"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 193.0, 235.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-14"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 154.0, 235.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-15"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b8",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 154.0, 262.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-16"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 194.0, 171.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-17"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 155.0, 171.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-18"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b7",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 155.0, 196.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-19"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 194.0, 101.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-20"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 155.0, 101.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-21"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b6",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 155.0, 128.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-22"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 195.0, 37.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-23"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 156.0, 37.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-24"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b5",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 156.0, 62.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-25"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 86.0, 238.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-8"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 47.0, 238.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-9"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b4",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 47.0, 265.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-10"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 87.0, 174.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-11"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 48.0, 174.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-12"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b3",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 48.0, 199.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-13"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 87.0, 104.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 48.0, 104.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-6"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b2",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 48.0, 131.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-7"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 88.0, 40.0, 50.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-4"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patching_rect" : [ 49.0, 40.0, 35.0, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-3"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ b1",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 49.0, 65.0, 65.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-1"
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"patching_rect" : [ 205.0, 15.0, 60.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-12"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "1",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"patching_rect" : [ 205.0, 45.0, 32.5, 18.0 ],
"numinlets" : 2,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-11"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "# of STEPS",
"fontname" : "Arial",
"patching_rect" : [ 268.0, 27.0, 75.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"id" : "obj-10"
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"patching_rect" : [ 270.0, 49.0, 50.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 2,
"id" : "obj-9"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "BPM",
"fontname" : "Arial",
"patching_rect" : [ 144.0, 25.0, 43.0, 20.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"id" : "obj-8"
}

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

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "tempo",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"patching_rect" : [ 76.0, 74.0, 212.5, 20.0 ],
"numinlets" : 4,
"fontsize" : 12.0,
"numoutlets" : 1,
"id" : "obj-6"
}

}
, {
"box" : {
"maxclass" : "matrixctrl",
"outlettype" : [ "list", "list" ],
"patching_rect" : [ 228.0, 153.0, 576.0, 302.0 ],
"numinlets" : 1,
"columns" : 32,
"numoutlets" : 2,
"rows" : 16,
"id" : "obj-2"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "matrix~ 32 16 1.",
"outlettype" : [ "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "signal", "list" ],
"fontname" : "Arial",
"patching_rect" : [ 228.0, 496.0, 748.5, 20.0 ],
"numinlets" : 32,
"fontsize" : 12.0,
"numoutlets" : 17,
"id" : "obj-1"
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-16", 4 ],
"hidden" : 0,
"midpoints" : [ 152.0, 127.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 1,
"midpoints" : [ 279.5, 74.0, 294.0, 74.0, 294.0, 110.0, 214.0, 110.0, 214.0, 99.0, 183.5, 99.0 ]
}

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

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

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

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

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

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

}
]
}

So basically, I was thinking that at each beat, I could play all 16 buffers, but using matrixctrl, only have the audio from selected buffers being played. Will having every sample play at once on every beat be too taxing on my CPU? Is there a way to use matrixctrl to not route audio through matrix~ but instead to select what buffer gets played?

Much thanks for any help!


May 27, 2008 | 7:30 pm

On May 27, 2008, at 12:03 PM, Myrddin_Wyllt wrote:

> With matrixctrl, how do I get it to output the value of just a
> single row?

First off, use Copy Compressed from the Edit menu, and not Copy, for
stuff that you’re going to paste here on the mailing list.

Second, I have an example, called PulseSequencer, on my examples page: http://www.xfade.com/max/examples/
This example illustrates using fetching values from matrix with a
counter to form a simple pulse sequencer.

-C

Chris Muir
cbm@well.com

http://www.xfade.com


May 27, 2008 | 8:14 pm

Cool thx for the help


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