live.text behaves odd

Dec 16, 2010 at 8:47pm

live.text behaves odd

i want to use a live.text as a button to start recording something into a buffer. after a second the record will stop. as indicator for current recording the button should be on or off. this button does behave odd: i set bang on transition from zero to one, but every third time it bangs on both – zero to one and one to zero – transitions. dont know, what to do there.

i know, i could use it as toggle, but i want the device to be clear at first sight, so you should see, that you cant turn off recording, because thats automated.

hope anyone can help me.

and heres the patch ( dont know, why its so long, normaly they are shorter in text)

{
“boxes” : [ {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 10.0,
"outlettype" : [ "int", "bang" ],
“patching_rect” : [ 86.0, 106.5, 50.0, 18.0 ],
“id” : “obj-107″,
“fontname” : “Arial Bold”,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “counter”,
“numoutlets” : 4,
“fontsize” : 10.0,
“outlettype” : [ "int", "", "", "int" ],
“patching_rect” : [ 86.0, 87.5, 73.0, 18.0 ],
“id” : “obj-105″,
“fontname” : “Arial Bold”,
“numinlets” : 5
}

}
, {
“box” : {
“maxclass” : “toggle”,
“numoutlets” : 1,
“outlettype” : [ "int" ],
“patching_rect” : [ 86.0, 21.5, 20.0, 20.0 ],
“id” : “obj-100″,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “live.text”,
“varname” : “live.text[2]“,
“mode” : 0,
“numoutlets” : 2,
“presentation_rect” : [ 169.0, 49.0, 57.0, 22.0 ],
“texton” : “Reverse”,
“outlettype” : [ "", "" ],
“text” : “REC”,
“activebgoncolor” : [ 1.0, 0.133333, 0.133333, 1.0 ],
“automation” : “-1″,
“patching_rect” : [ 86.0, 44.5, 47.0, 22.0 ],
“automationon” : “1″,
“presentation” : 1,
“parameter_enable” : 1,
“id” : “obj-3″,
“numinlets” : 1,
“saved_attribute_attributes” : {
“valueof” : {
“parameter_speedlim” : 1.0,
“parameter_steps” : 2,
“parameter_invisible” : 0,
“parameter_enum” : [ "-1", "1" ],
“parameter_exponent” : 1.0,
“parameter_annotation_name” : “”,
“parameter_unitstyle” : 10,
“parameter_mmax” : 1.0,
“parameter_mmin” : 0.0,
“parameter_initial” : [ 0.0 ],
“parameter_type” : 2,
“parameter_initial_enable” : 0,
“parameter_shortname” : “clear”,
“parameter_modmax” : 127.0,
“parameter_longname” : “clear[1]“,
“parameter_modmin” : 0.0,
“parameter_linknames” : 0,
“parameter_modmode” : 0,
“parameter_info” : “”,
“parameter_units” : “”,
“parameter_order” : 10,
“parameter_defer” : 0
}

}

}

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

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

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

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

}
]
}

#53990
Dec 28, 2010 at 12:28am

I would use it as toggle and prevent clicks with an ingnoreclick message:

(the shorter patch is done by choosing copy compressed instead of a simple copy…)

– Pasted Max Patch, click to expand. –
#194299

You must be logged in to reply to this topic.