Alternative to pak that doesn't "store" values

Clément HUBERT's icon

Hi guys,

I am faced to a problem with a pak object.

I need to link 128 float values from a patch called "angles" to an other called "meters". If I change a value in one of the patch I want it to be modified in the second patch.
So I used a combinaison of pak, unpack and prepend (set) objects and it works quite well.
But, if I initialize all the values in a patch with message objects and if I modify then one value in one of the patch, the other floats come back to their former value while I don't want them to move. As if the pak object in the "angles" patch stored the other values and sent it when it received the one modified value.

I don't know if it's clear enough so I made a little patch that reproduce the same problem but only with 2 integer values and an initialize bang.
Have you any idea of what could prevent this ?

Thanks in advance,
Clément

{
    "boxes" : [         {
            "box" :             {
                "maxclass" : "comment",
                "text" : "Initialize",
                "style" : "",
                "numoutlets" : 0,
                "patching_rect" : [ 318.5, 126.0, 52.0, 20.0 ],
                "presentation" : 1,
                "id" : "obj-58",
                "presentation_rect" : [ 318.5, 126.0, 52.0, 20.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 105.0, 90.0, 50.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-54",
                "outlettype" : [ "", "bang" ],
                "parameter_enable" : 0,
                "presentation_rect" : [ 105.0, 90.0, 50.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 105.0, 240.0, 50.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-49",
                "outlettype" : [ "", "bang" ],
                "parameter_enable" : 0,
                "presentation_rect" : [ 105.0, 240.0, 50.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 191.0, 240.0, 50.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-40",
                "outlettype" : [ "", "bang" ],
                "parameter_enable" : 0,
                "presentation_rect" : [ 191.0, 240.0, 50.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 191.0, 90.0, 50.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-35",
                "outlettype" : [ "", "bang" ],
                "parameter_enable" : 0,
                "presentation_rect" : [ 191.0, 90.0, 50.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "delay 10",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 338.937561, 155.0, 56.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-16",
                "outlettype" : [ "bang" ],
                "presentation_rect" : [ 338.937561, 155.0, 56.0, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pak",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 142.5, 131.0, 30.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-27",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 142.5, 131.0, 30.0, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack i i",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 142.5, 193.0, 61.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-26",
                "outlettype" : [ "int", "int" ],
                "presentation_rect" : [ 142.5, 193.0, 61.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "0",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 292.333313, 188.0, 29.5, 22.0 ],
                "presentation" : 1,
                "id" : "obj-62",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 292.333313, 188.0, 29.5, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "button",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 292.333313, 155.0, 24.0, 24.0 ],
                "presentation" : 1,
                "id" : "obj-64",
                "outlettype" : [ "bang" ],
                "presentation_rect" : [ 292.333313, 155.0, 24.0, 24.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "200",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 379.104187, 188.0, 31.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-61",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 379.104187, 188.0, 31.0, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "150",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 338.937561, 188.0, 31.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-60",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 338.937561, 188.0, 31.0, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "comment",
                "text" : "Patch \"angles\"",
                "linecount" : 2,
                "presentation_linecount" : 2,
                "style" : "",
                "numoutlets" : 0,
                "patching_rect" : [ 22.083344, 68.5, 64.833313, 33.0 ],
                "presentation" : 1,
                "id" : "obj-50",
                "presentation_rect" : [ 22.083344, 68.5, 64.833313, 33.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "comment",
                "text" : "Patch \"meters\"",
                "linecount" : 2,
                "presentation_linecount" : 2,
                "style" : "",
                "numoutlets" : 0,
                "patching_rect" : [ 22.083344, 231.0, 61.0, 33.0 ],
                "presentation" : 1,
                "id" : "obj-47",
                "presentation_rect" : [ 22.083344, 231.0, 61.0, 33.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "prepend set",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 191.0, 60.5, 74.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-43",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 191.0, 60.5, 74.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "prepend set",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 105.0, 60.5, 74.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-42",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 105.0, 60.5, 74.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack i i",
                "style" : "",
                "numoutlets" : 2,
                "patching_rect" : [ 126.0, 22.5, 61.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-41",
                "outlettype" : [ "int", "int" ],
                "presentation_rect" : [ 126.0, 22.5, 61.0, 22.0 ],
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pak f f",
                "style" : "",
                "numoutlets" : 1,
                "patching_rect" : [ 136.0, 282.0, 43.0, 22.0 ],
                "presentation" : 1,
                "id" : "obj-32",
                "outlettype" : [ "" ],
                "presentation_rect" : [ 136.0, 282.0, 43.0, 22.0 ],
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "panel",
                "style" : "",
                "numoutlets" : 0,
                "patching_rect" : [ 90.0, 12.0, 190.0, 146.0 ],
                "presentation" : 1,
                "id" : "obj-3",
                "presentation_rect" : [ 90.0, 12.0, 190.0, 146.0 ],
                "numinlets" : 1,
                "mode" : 0,
                "angle" : 270.0,
                "bgcolor" : [ 0.847331, 0.751866, 0.521653, 1.0 ],
                "proportion" : 0.39
            }

        }
,         {
            "box" :             {
                "maxclass" : "panel",
                "style" : "",
                "bordercolor" : [ 0.849573, 1.0, 0.926902, 1.0 ],
                "numoutlets" : 0,
                "patching_rect" : [ 90.0, 183.0, 166.0, 129.0 ],
                "presentation" : 1,
                "id" : "obj-2",
                "presentation_rect" : [ 90.0, 183.0, 166.0, 129.0 ],
                "numinlets" : 1,
                "mode" : 0,
                "angle" : 270.0,
                "bgcolor" : [ 0.849573, 1.0, 0.926902, 1.0 ],
                "proportion" : 0.39
            }

        }
 ],
    "lines" : [         {
            "patchline" :             {
                "source" : [ "obj-64", 0 ],
                "destination" : [ "obj-62", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 1
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-64", 0 ],
                "destination" : [ "obj-16", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-16", 0 ],
                "destination" : [ "obj-61", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-16", 0 ],
                "destination" : [ "obj-60", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 1
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-42", 0 ],
                "destination" : [ "obj-54", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-43", 0 ],
                "destination" : [ "obj-35", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-54", 0 ],
                "destination" : [ "obj-27", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-35", 0 ],
                "destination" : [ "obj-27", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-62", 0 ],
                "destination" : [ "obj-49", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 1
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-62", 0 ],
                "destination" : [ "obj-40", 0 ],
                "hidden" : 0,
                "disabled" : 0,
                "order" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-60", 0 ],
                "destination" : [ "obj-49", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-61", 0 ],
                "destination" : [ "obj-40", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-49", 0 ],
                "destination" : [ "obj-32", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-40", 0 ],
                "destination" : [ "obj-32", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-32", 0 ],
                "destination" : [ "obj-41", 0 ],
                "hidden" : 0,
                "midpoints" : [ 145.5, 335.0, 432.0, 335.0, 432.0, 4.0, 135.5, 4.0 ],
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-41", 1 ],
                "destination" : [ "obj-43", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-41", 0 ],
                "destination" : [ "obj-42", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-27", 0 ],
                "destination" : [ "obj-26", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-26", 0 ],
                "destination" : [ "obj-49", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-26", 1 ],
                "destination" : [ "obj-40", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
 ],
    "appversion" :     {
        "major" : 7,
        "minor" : 3,
        "revision" : 3,
        "architecture" : "x64",
        "modernui" : 1
    }
,
    "styles" : [         {
            "name" : "AudioStatus_Menu",
            "default" :             {
                "bgfillcolor" :                 {
                    "type" : "color",
                    "color" : [ 0.294118, 0.313726, 0.337255, 1 ],
                    "color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ],
                    "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
                    "angle" : 270.0,
                    "proportion" : 0.39,
                    "autogradient" : 0
                }

            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjBlue-1",
            "default" :             {
                "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjBlue-2",
            "default" :             {
                "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjBlue-3",
            "default" :             {
                "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjGreen-1",
            "default" :             {
                "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjGreen-2",
            "default" :             {
                "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjGreen-3",
            "default" :             {
                "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjYellow-1",
            "default" :             {
                "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ],
                "fontsize" : [ 12.059008 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjYellow-2",
            "default" :             {
                "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ],
                "fontsize" : [ 12.059008 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
,         {
            "name" : "newobjYellow-3",
            "default" :             {
                "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ],
                "fontsize" : [ 12.059008 ]
            }
,
            "parentstyle" : "",
            "multi" : 0
        }
 ]
}
jvkr's icon

Is it this?

Max Patch
Copy patch and select New From Clipboard in Max.

Clément HUBERT's icon

Yes sorry didn't know how to share it properly. Thanks

Holland Hopson's icon

I'm not sure I understand the problem, but maybe the value object would be of help.

Source Audio's icon

here is a little modification of Your patch

Max Patch
Copy patch and select New From Clipboard in Max.

Clément HUBERT's icon

Yes thank you very much Source Audio ! It works as it :)