Hail ! An ode is under composition.
Easy indeed when you know how. A couple of questions - I now have a metro object which triggers your u3 object to read. So if I bang it at say 20 ms intervals it will sample the data on each channel every 20 ms correct ?
I have seperated each channel out (using the unpack object) and included this metro/timer object here . Click the little box attached to the metro to start the patch and you can change how fast the procesess runs by changing the number box attached to the metro by clicking and sliding up down (default 20 ms) You can download the patch here : http://we.tl/66LPWbdTo6
Or If you copy the following code into a new blank max patch it should pop up :
{
"boxes" : [ {
"box" : {
"maxclass" : "flonum",
"id" : "obj-23",
"presentation_rect" : [ 865.0, 577.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 1051.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-24",
"presentation_rect" : [ 815.0, 577.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 945.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-25",
"presentation_rect" : [ 765.0, 577.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 850.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-26",
"presentation_rect" : [ 715.0, 577.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 761.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-22",
"presentation_rect" : [ 659.0, 576.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 658.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-21",
"presentation_rect" : [ 615.0, 581.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 564.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-20",
"presentation_rect" : [ 563.0, 578.0, 0.0, 0.0 ],
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 466.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-19",
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 351.0, 586.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "unpack 0. 1. 2. 3. 4. 5. 6. 7.",
"id" : "obj-5",
"outlettype" : [ "float", "float", "float", "float", "float", "float", "float", "float" ],
"fontsize" : 13.0,
"numinlets" : 1,
"patching_rect" : [ 576.0, 480.0, 168.0, 21.0 ],
"numoutlets" : 8,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "flonum",
"id" : "obj-8",
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 456.0, 70.0, 50.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "toggle",
"id" : "obj-6",
"outlettype" : [ "int" ],
"numinlets" : 1,
"patching_rect" : [ 319.0, 70.0, 20.0, 20.0 ],
"numoutlets" : 1,
"parameter_enable" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro",
"id" : "obj-3",
"outlettype" : [ "bang" ],
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 360.0, 93.0, 41.0, 20.0 ],
"numoutlets" : 1,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "button",
"id" : "obj-16",
"outlettype" : [ "bang" ],
"numinlets" : 1,
"patching_rect" : [ 304.0, 170.0, 20.0, 20.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "-",
"id" : "obj-15",
"outlettype" : [ "int" ],
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 360.0, 257.0, 32.5, 20.0 ],
"numoutlets" : 1,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "number",
"id" : "obj-14",
"outlettype" : [ "int", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 360.0, 299.0, 93.0, 20.0 ],
"numoutlets" : 2,
"parameter_enable" : 0,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "cpuclock",
"id" : "obj-12",
"outlettype" : [ "float" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 304.0, 211.0, 57.0, 20.0 ],
"numoutlets" : 1,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "cpuclock",
"id" : "obj-10",
"outlettype" : [ "float" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 442.5, 128.0, 57.0, 20.0 ],
"numoutlets" : 1,
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "button",
"id" : "obj-2",
"outlettype" : [ "bang" ],
"numinlets" : 1,
"patching_rect" : [ 155.0, 113.0, 20.0, 20.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "u3ReadAINs 8",
"id" : "obj-1",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 120.5, 152.0, 89.0, 20.0 ],
"numoutlets" : 1,
"fontname" : "Arial"
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 7 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 6 ],
"destination" : [ "obj-24", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 5 ],
"destination" : [ "obj-25", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 4 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 3 ],
"destination" : [ "obj-22", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 2 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 1 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-3", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-15", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
],
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 2,
"architecture" : "x86"
}
}