Forums > MaxMSP

convert Patcher in MaxMsp 4.56

August 23, 2009 | 2:31 pm

DEAR ALL

I try to convert this

{
    "patcher" :     {
        "fileversion" : 1,
        "rect" : [ 20.0, 356.0, 575.0, 255.0 ],
        "bglocked" : 0,
        "defrect" : [ 20.0, 356.0, 575.0, 255.0 ],
        "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
        "openinpresentation" : 0,
        "default_fontsize" : 12.0,
        "default_fontface" : 0,
        "default_fontname" : "Arial",
        "gridonopen" : 0,
        "gridsize" : [ 5.0, 5.0 ],
        "gridsnaponopen" : 0,
        "toolbarvisible" : 1,
        "boxanimatetime" : 200,
        "imprint" : 0,
        "boxes" : [             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "zl slice 1",
                    "patching_rect" : [ 400.0, 125.0, 58.0, 20.0 ],
                    "outlettype" : [ "", "" ],
                    "fontname" : "Arial",
                    "id" : "obj-6",
                    "numinlets" : 2,
                    "fontsize" : 12.0,
                    "numoutlets" : 2
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "loadbang",
                    "patching_rect" : [ 360.0, 45.0, 60.0, 20.0 ],
                    "outlettype" : [ "bang" ],
                    "fontname" : "Arial",
                    "id" : "obj-5",
                    "numinlets" : 1,
                    "fontsize" : 12.0,
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "zl slice 1",
                    "patching_rect" : [ 360.0, 100.0, 59.0, 20.0 ],
                    "outlettype" : [ "", "" ],
                    "fontname" : "Arial",
                    "id" : "obj-2",
                    "numinlets" : 2,
                    "fontsize" : 12.0,
                    "numoutlets" : 2
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "patcherargs",
                    "patching_rect" : [ 360.0, 70.0, 74.0, 20.0 ],
                    "outlettype" : [ "", "" ],
                    "fontname" : "Arial",
                    "id" : "obj-1",
                    "numinlets" : 1,
                    "fontsize" : 12.0,
                    "numoutlets" : 2
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "change",
                    "patching_rect" : [ 50.0, 70.0, 50.0, 20.0 ],
                    "outlettype" : [ "", "int", "int" ],
                    "fontname" : "Arial",
                    "id" : "obj-46",
                    "numinlets" : 1,
                    "fontsize" : 12.0,
                    "numoutlets" : 3
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "forward",
                    "patching_rect" : [ 50.0, 215.0, 51.0, 20.0 ],
                    "fontname" : "Arial",
                    "id" : "obj-33",
                    "numinlets" : 1,
                    "fontsize" : 12.0,
                    "numoutlets" : 0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "t i b b",
                    "patching_rect" : [ 50.0, 95.0, 309.0, 20.0 ],
                    "outlettype" : [ "int", "bang", "bang" ],
                    "fontname" : "Arial",
                    "id" : "obj-28",
                    "numinlets" : 1,
                    "fontsize" : 12.0,
                    "numoutlets" : 3
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "message",
                    "text" : "volume",
                    "patching_rect" : [ 340.0, 158.0, 79.0, 18.0 ],
                    "outlettype" : [ "" ],
                    "fontname" : "Arial",
                    "id" : "obj-26",
                    "numinlets" : 2,
                    "fontsize" : 12.0,
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "message",
                    "text" : "S2_Player",
                    "patching_rect" : [ 195.0, 159.0, 69.0, 18.0 ],
                    "outlettype" : [ "" ],
                    "fontname" : "Arial",
                    "id" : "obj-23",
                    "numinlets" : 2,
                    "fontsize" : 12.0,
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "sprintf send %s_remote_%s",
                    "patching_rect" : [ 195.0, 185.0, 164.0, 20.0 ],
                    "outlettype" : [ "" ],
                    "fontname" : "Arial",
                    "id" : "obj-21",
                    "numinlets" : 2,
                    "fontsize" : 12.0,
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "inlet",
                    "patching_rect" : [ 50.0, 40.0, 25.0, 25.0 ],
                    "outlettype" : [ "" ],
                    "id" : "obj-47",
                    "numinlets" : 0,
                    "numoutlets" : 1,
                    "comment" : ""
                }

            }
 ],
        "lines" : [             {
                "patchline" :                 {
                    "source" : [ "obj-47", 0 ],
                    "destination" : [ "obj-46", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-46", 0 ],
                    "destination" : [ "obj-28", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-21", 0 ],
                    "destination" : [ "obj-33", 0 ],
                    "hidden" : 0,
                    "midpoints" : [ 204.5, 210.0, 59.5, 210.0 ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-28", 0 ],
                    "destination" : [ "obj-33", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-28", 2 ],
                    "destination" : [ "obj-26", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-28", 1 ],
                    "destination" : [ "obj-23", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

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

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-23", 0 ],
                    "destination" : [ "obj-21", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

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

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

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

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

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-6", 1 ],
                    "destination" : [ "obj-23", 1 ],
                    "hidden" : 0,
                    "midpoints" : [ 448.5, 153.0, 254.5, 153.0 ]
                }

            }
 ]
    }

}

I begin to convert this but i have any problems but I post here my patcher in maxmsp 4.56

max v2;
#N vpatcher 0 0 1024 692;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 154 197 39 9109513 volume;
#P window linecount 0;
#P newex 284 334 50 9109513;
#P window linecount 1;
#P message 103 198 51 9109513 S1_Player;
#P newex 212 195 44 9109513 zl slice 1;
#P newex 178 169 44 9109513 zl slice 1;
#P newex 179 135 57 9109513 patcherargs;
#P newex 178 97 45 9109513 loadbang;
#P newex 53 296 39 9109513 forward;
#P window linecount 2;
#P newex 105 237 117 9109513 sprintf send %s_remote_%s;
#P window linecount 1;
#P newex 49 167 108 9109513 t i b b;
#P newex 51 122 40 9109513 change;
#P inlet 51 73 15 0;
#P connect 1 0 2 0;
#P connect 0 0 1 0;
#P connect 3 0 4 0;
#P connect 2 0 4 0;
#P connect 2 1 9 0;
#P connect 8 1 9 0;
#P connect 9 0 3 0;
#P connect 2 2 11 0;
#P connect 6 0 7 0;
#P connect 5 0 6 0;
#P connect 7 1 8 0;
#P connect 8 0 3 1;
#P connect 11 0 3 1;
#P pop;

Thanks for advice


August 23, 2009 | 3:38 pm

for a start, try maxpat for sc3.

http://www.fredrikolofsson.com/pages/code-sc.html


Viewing 2 posts - 1 through 2 (of 2 total)