[combine] output numbers?


    Jul 11 2012 | 9:48 pm
    Hi everyone,
    I got a strange problem:
    I use [combine] to combine to number as one. For example, If I got 12 and 4 it gives me "124" or if I got 2 and 9 it gives me "29" ...
    The problem is that combine output symbols and not number and I can not send it to a number box.
    Any Idea how I can do that?
    Here is my patch:
    {
    "patcher" : {
    "fileversion" : 1,
    "appversion" : {
    "major" : 6,
    "minor" : 0,
    "revision" : 4
    }
    ,
    "rect" : [ 222.0, 57.0, 884.0, 704.0 ],
    "bglocked" : 0,
    "openinpresentation" : 0,
    "default_fontsize" : 12.0,
    "default_fontface" : 0,
    "default_fontname" : "Arial",
    "gridonopen" : 0,
    "gridsize" : [ 15.0, 15.0 ],
    "gridsnaponopen" : 0,
    "statusbarvisible" : 2,
    "toolbarvisible" : 1,
    "boxanimatetime" : 200,
    "imprint" : 0,
    "enablehscroll" : 1,
    "enablevscroll" : 1,
    "devicewidth" : 0.0,
    "description" : "",
    "digest" : "",
    "tags" : "",
    "boxes" : [ {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-42",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 108.0, 650.0, 50.0, 20.0 ]
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-9",
    "maxclass" : "message",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "" ],
    "patching_rect" : [ 94.0, 595.0, 50.0, 18.0 ],
    "text" : ""373""
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-32",
    "maxclass" : "newobj",
    "numinlets" : 2,
    "numoutlets" : 2,
    "outlettype" : [ "", "" ],
    "patching_rect" : [ 94.0, 558.0, 151.0, 20.0 ],
    "text" : "combine 0 0 @triggers 0 1"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-30",
    "maxclass" : "comment",
    "numinlets" : 1,
    "numoutlets" : 0,
    "patching_rect" : [ 277.0, 11.0, 45.0, 20.0 ],
    "text" : "Tempo"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-28",
    "maxclass" : "comment",
    "numinlets" : 1,
    "numoutlets" : 0,
    "patching_rect" : [ 375.5, 72.0, 92.5, 20.0 ],
    "text" : "Time signature"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-27",
    "maxclass" : "comment",
    "numinlets" : 1,
    "numoutlets" : 0,
    "patching_rect" : [ 9.0, 96.0, 35.0, 20.0 ],
    "text" : "go to"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-25",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 100.0, 96.0, 50.0, 20.0 ]
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-24",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 47.0, 96.0, 50.0, 20.0 ]
    }
    }
    , {
    "box" : {
    "blinkcolor" : [ 1.0, 0.643659, 0.036232, 1.0 ],
    "id" : "obj-22",
    "maxclass" : "button",
    "numinlets" : 1,
    "numoutlets" : 1,
    "outlettype" : [ "bang" ],
    "patching_rect" : [ 363.25, 263.0, 83.0, 83.0 ]
    }
    }
    , {
    "box" : {
    "id" : "obj-21",
    "maxclass" : "button",
    "numinlets" : 1,
    "numoutlets" : 1,
    "outlettype" : [ "bang" ],
    "patching_rect" : [ 118.0, 263.0, 83.0, 83.0 ]
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-19",
    "maxclass" : "newobj",
    "numinlets" : 5,
    "numoutlets" : 4,
    "outlettype" : [ "int", "", "", "int" ],
    "patching_rect" : [ 94.0, 219.0, 91.0, 20.0 ],
    "text" : "counter 1 1000"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 100.0,
    "id" : "obj-18",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 94.0, 373.0, 218.0, 121.0 ],
    "triangle" : 0
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-17",
    "maxclass" : "newobj",
    "numinlets" : 2,
    "numoutlets" : 2,
    "outlettype" : [ "bang", "" ],
    "patching_rect" : [ 94.0, 196.0, 52.0, 20.0 ],
    "text" : "select 1"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-15",
    "maxclass" : "message",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "" ],
    "patching_rect" : [ 462.0, 96.0, 32.5, 18.0 ],
    "text" : "5"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-14",
    "maxclass" : "message",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "" ],
    "patching_rect" : [ 345.0, 96.0, 32.5, 18.0 ],
    "text" : "2"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 100.0,
    "id" : "obj-13",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 330.25, 373.0, 204.25, 121.0 ],
    "triangle" : 0
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-11",
    "maxclass" : "message",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "" ],
    "patching_rect" : [ 384.0, 96.0, 32.5, 18.0 ],
    "text" : "3"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-10",
    "maxclass" : "message",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "" ],
    "patching_rect" : [ 423.0, 96.0, 32.5, 18.0 ],
    "text" : "4"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-8",
    "maxclass" : "newobj",
    "numinlets" : 5,
    "numoutlets" : 4,
    "outlettype" : [ "int", "", "", "int" ],
    "patching_rect" : [ 217.0, 168.0, 73.0, 20.0 ],
    "text" : "counter 1 4"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-6",
    "maxclass" : "newobj",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "int" ],
    "patching_rect" : [ 277.0, 57.0, 54.0, 20.0 ],
    "text" : "!/ 60000"
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-5",
    "maxclass" : "number",
    "numinlets" : 1,
    "numoutlets" : 2,
    "outlettype" : [ "int", "bang" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 277.0, 31.0, 50.0, 20.0 ]
    }
    }
    , {
    "box" : {
    "id" : "obj-3",
    "maxclass" : "toggle",
    "numinlets" : 1,
    "numoutlets" : 1,
    "outlettype" : [ "int" ],
    "parameter_enable" : 0,
    "patching_rect" : [ 184.0, 37.0, 29.0, 29.0 ]
    }
    }
    , {
    "box" : {
    "fontname" : "Arial",
    "fontsize" : 12.0,
    "id" : "obj-1",
    "maxclass" : "newobj",
    "numinlets" : 2,
    "numoutlets" : 1,
    "outlettype" : [ "bang" ],
    "patching_rect" : [ 217.0, 86.0, 79.0, 20.0 ],
    "text" : "metro"
    }
    }
    ],
    "lines" : [ {
    "patchline" : {
    "destination" : [ "obj-8", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-1", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-8", 4 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 432.5, 140.5, 280.5, 140.5 ],
    "source" : [ "obj-10", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-8", 4 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 393.5, 140.5, 280.5, 140.5 ],
    "source" : [ "obj-11", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-32", 1 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 339.75, 525.5, 235.5, 525.5 ],
    "source" : [ "obj-13", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-8", 4 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 354.5, 140.5, 280.5, 140.5 ],
    "source" : [ "obj-14", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-8", 4 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 471.5, 140.5, 280.5, 140.5 ],
    "source" : [ "obj-15", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-19", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-17", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-32", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-18", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-18", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-19", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-21", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 103.5, 256.0, 127.5, 256.0 ],
    "source" : [ "obj-19", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-19", 3 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 56.5, 167.0, 157.5, 167.0 ],
    "source" : [ "obj-24", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-8", 2 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 109.5, 141.5, 253.5, 141.5 ],
    "source" : [ "obj-25", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-1", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 193.5, 71.0, 226.5, 71.0 ],
    "source" : [ "obj-3", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-9", 1 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 103.5, 586.0, 134.5, 586.0 ],
    "source" : [ "obj-32", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-6", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-5", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-1", 1 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-6", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-13", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 226.5, 310.5, 339.75, 310.5 ],
    "source" : [ "obj-8", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-17", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 226.5, 192.5, 103.5, 192.5 ],
    "source" : [ "obj-8", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-22", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "midpoints" : [ 226.5, 256.5, 372.75, 256.5 ],
    "source" : [ "obj-8", 0 ]
    }
    }
    , {
    "patchline" : {
    "destination" : [ "obj-42", 0 ],
    "disabled" : 0,
    "hidden" : 0,
    "source" : [ "obj-9", 0 ]
    }
    }
    ],
    "dependency_cache" : [ ]
    }
    }

    • Jul 11 2012 | 9:57 pm
      fromsymbol
    • Jul 11 2012 | 10:07 pm
      thanks, exactly what i needed !
    • Jul 12 2012 | 9:35 am
      Or you can do maths ;-)