Forums > MaxMSP

combining strings with quotations

November 26, 2011 | 4:54 am

in this patch, im trying to combine the 2 strings, but have the quotations only surround the whole string, not like the 2 separate parts. how do i do this? google is not helping in the least and the max references and related topics arent either.


November 26, 2011 | 4:54 am

heres the patch


November 26, 2011 | 5:43 am

Do you mean something like this:

{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "Do you know this object?",
"numoutlets" : 0,
"id" : "obj-27",
"fontname" : "Arial",
"patching_rect" : [ 16.0, 435.0, 150.0, 20.0 ],
"fontsize" : 12.0,
"numinlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "opendialog",
"numoutlets" : 2,
"id" : "obj-25",
"fontname" : "Arial",
"patching_rect" : [ 51.0, 462.0, 69.0, 20.0 ],
"outlettype" : [ "", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~ 2",
"numoutlets" : 3,
"id" : "obj-16",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 303.0, 59.0, 20.0 ],
"outlettype" : [ "signal", "signal", "bang" ],
"fontsize" : 12.0,
"numinlets" : 2,
"presentation_rect" : [ 571.0, 335.0, 0.0, 0.0 ],
"save" : [ "#N", "sfplay~", "", 2, 120960, 0, "", ";" ]
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"numoutlets" : 0,
"id" : "obj-17",
"patching_rect" : [ 49.0, 340.0, 45.0, 45.0 ],
"numinlets" : 2,
"presentation_rect" : [ 567.0, 372.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend open",
"numoutlets" : 1,
"id" : "obj-15",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 257.0, 85.0, 20.0 ],
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b b",
"numoutlets" : 2,
"id" : "obj-14",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 47.0, 34.0, 20.0 ],
"outlettype" : [ "bang", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1
}

}
, {
"box" : {
"maxclass" : "button",
"numoutlets" : 1,
"id" : "obj-11",
"patching_rect" : [ 49.0, 4.0, 20.0, 20.0 ],
"outlettype" : [ "bang" ],
"numinlets" : 1,
"presentation_rect" : [ 572.0, 26.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "tosymbol",
"numoutlets" : 1,
"id" : "obj-9",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 215.0, 59.0, 20.0 ],
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : ""Tom M.wav"",
"numoutlets" : 1,
"id" : "obj-5",
"fontname" : "Arial",
"patching_rect" : [ 113.0, 147.0, 80.0, 18.0 ],
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"presentation_rect" : [ 686.0, 113.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : ""C:/Documents and Settings/Shit/Desktop/Drum Samples/Roland TR-707/"",
"linecount" : 2,
"numoutlets" : 1,
"id" : "obj-3",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 108.0, 311.0, 32.0 ],
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"presentation_rect" : [ 378.0, 64.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sprintf %s %s",
"numoutlets" : 1,
"id" : "obj-1",
"fontname" : "Arial",
"patching_rect" : [ 49.0, 173.0, 83.0, 20.0 ],
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2
}

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

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

}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

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

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

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

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

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

}
]
}

Attachments:
  1. twoS.maxpat

November 26, 2011 | 6:15 am

thank you very much. and yes im familiar with that certain object, its just im trying to do a specific thing with something else along with this snippet. the whole patch is much larger.


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