Very simple solution to this question is to use "split" objects to achieve this. What a split object does is basically take an incoming number in its inlet, and says "if this number is in between two numbers specified, output the number out the left outlet, and if its NOT in the range, output the number out the right outlet." What you can do, is, in the object, specify you're number range you want to translate to one number (say in your case, 49 as lower limit, and 51 as upper limit). Then, out the outlet that says "send number if within limits," attach this to a message box that say "50" in it. What this will do, is it will take the numbers "49" "50" and "51" and spit them out as "50". You can make as many of these as you want. Just make sure to only use the "if within limits" outlet, or else all your "splits" will be firing off if the number is not within their limits and screwing stuff up.
Here's some simple code that illustrates what Im talking about:
{
"boxes" : [ {
"box" : {
"maxclass" : "message",
"text" : "10",
"fontsize" : 12.0,
"outlettype" : [ "" ],
"numinlets" : 2,
"numoutlets" : 1,
"patching_rect" : [ 677.0, 628.0, 32.5, 18.0 ],
"id" : "obj-73",
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"numinlets" : 1,
"numoutlets" : 1,
"patching_rect" : [ 723.0, 668.0, 20.0, 20.0 ],
"id" : "obj-69"
}
}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 12.0,
"outlettype" : [ "int", "bang" ],
"numinlets" : 1,
"numoutlets" : 2,
"patching_rect" : [ 687.0, 566.0, 50.0, 20.0 ],
"id" : "obj-64",
"fontname" : "Arial",
"parameter_enable" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "split 10 15",
"fontsize" : 12.0,
"outlettype" : [ "int", "int" ],
"numinlets" : 3,
"numoutlets" : 2,
"patching_rect" : [ 677.0, 592.0, 65.0, 20.0 ],
"id" : "obj-62",
"fontname" : "Arial"
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-62", 0 ],
"destination" : [ "obj-73", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-73", 0 ],
"destination" : [ "obj-69", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-64", 0 ],
"destination" : [ "obj-62", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
],
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 7,
"architecture" : "x86"
}
}