pass only 1 value on n value

Mar 12, 2009 at 1:37am

pass only 1 value on n value

Hi list,

I am looking for an object which just pass one value for ten value received.

for exemple:

if I send a counter info => 1 2 3 4 5 6 7 8 9 10 11 12 13 etc…
it output 1 – - – - – - – - – 11 – - – - – - – - – -21….etc

when changing the quantize parameter ,it could be output the two first value on ten value,the threes , four.. etc and all the value.

I try to make a system with a banger and cycle object but i think there is an easier solution.

if someone could help,it will be great.

thanks a lot

M

#42811
Mar 12, 2009 at 3:10am

zl group 10, zl slice 1 (or 2, or 3…)
Jean-François.

– Pasted Max Patch, click to expand. –
#153258
Mar 12, 2009 at 9:00am

put an object “%10″ or “%11″ and then a selector one I give you a patch explaining the stuff

{
“boxes” : [ {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-12",
"outlettype" : [ "bang" ],
“patching_rect” : [ 420.0, 255.0, 20.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “select 1″,
“numinlets” : 2,
“numoutlets” : 2,
“id” : “obj-8″,
“fontname” : “Hoefler Text”,
“outlettype” : [ "bang", "" ],
“patching_rect” : [ 420.0, 225.0, 53.0, 20.0 ],
“fontsize” : 14.0
}

}
, {
“box” : {
“maxclass” : “number”,
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-7″,
“fontname” : “Hoefler Text”,
“outlettype” : [ "int", "bang" ],
“patching_rect” : [ 330.0, 255.0, 50.0, 20.0 ],
“fontsize” : 14.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “% 10″,
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-5″,
“fontname” : “Hoefler Text”,
“outlettype” : [ "int" ],
“patching_rect” : [ 420.0, 195.0, 40.0, 20.0 ],
“fontsize” : 14.0
}

}
, {
“box” : {
“maxclass” : “toggle”,
“numinlets” : 1,
“numoutlets” : 1,
“id” : “obj-4″,
“outlettype” : [ "int" ],
“patching_rect” : [ 330.0, 105.0, 22.0, 22.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “metro 250″,
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-2″,
“fontname” : “Hoefler Text”,
“outlettype” : [ "bang" ],
“patching_rect” : [ 330.0, 135.0, 70.0, 20.0 ],
“fontsize” : 14.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “counter”,
“numinlets” : 5,
“numoutlets” : 4,
“id” : “obj-1″,
“fontname” : “Hoefler Text”,
“outlettype” : [ "int", "", "", "int" ],
“patching_rect” : [ 330.0, 165.0, 73.0, 20.0 ],
“fontsize” : 14.0
}

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

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

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

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

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

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

}
]
}

#153259

You must be logged in to reply to this topic.