Forums > MaxMSP

sending sustain points with function

September 30, 2008 | 6:01 pm

Hi,
Couldn’t find this addressed anywhere…
So I’m trying to send functions (envelopes) using send and receive, and I’m running into a problem with the sustain points. I’m able to send and receive the points from the envelope, but the sustain points don’t show up in the receive location. Here’s a video of my issue: http://psychoangelo.com/questions/env.mov

Am I simply doing something wrong? Patch follows below.

Thanks!,
Michael

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 87.0, 125.0, 908.0, 549.0 ],
"bglocked" : 0,
"defrect" : [ 87.0, 125.0, 908.0, 549.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" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "sending sustain points not working",
"linecount" : 2,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 371.0, 40.0, 154.0, 34.0 ],
"id" : "obj-10"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clear",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 437.0, 389.0, 39.0, 19.0 ],
"id" : "obj-8"
}

}
, {
"box" : {
"maxclass" : "number",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "int", "bang" ],
"patching_rect" : [ 130.0, 82.0, 57.0, 20.0 ],
"id" : "obj-7"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "s dur",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 13.0,
"patching_rect" : [ 130.0, 108.0, 39.0, 21.0 ],
"id" : "obj-6"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r dur",
"fontname" : "Arial",
"numinlets" : 0,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 417.0, 355.0, 37.0, 21.0 ],
"id" : "obj-3"
}

}
, {
"box" : {
"maxclass" : "number",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "int", "bang" ],
"patching_rect" : [ 337.0, 364.0, 57.0, 20.0 ],
"id" : "obj-4"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "setdomain $1",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 337.0, 389.0, 89.0, 19.0 ],
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r points",
"fontname" : "Arial",
"numinlets" : 0,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "" ],
"patching_rect" : [ 276.0, 387.0, 50.0, 20.0 ],
"id" : "obj-2"
}

}
, {
"box" : {
"maxclass" : "function",
"numinlets" : 1,
"numoutlets" : 4,
"clicksustain" : 0,
"outlettype" : [ "float", "", "", "bang" ],
"patching_rect" : [ 277.0, 418.0, 132.0, 66.0 ],
"domain" : 5000.0,
"id" : "obj-1",
"addpoints" : [ 0.0, 0.073171, 0, 1458.333374, 1.0, 0, 2583.333252, 0.780488, 0, 5000.0, 0.0, 0 ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clear",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 387.0, 91.0, 39.0, 19.0 ],
"id" : "obj-112"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r dur",
"fontname" : "Arial",
"numinlets" : 0,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 321.0, 53.0, 37.0, 21.0 ],
"id" : "obj-114"
}

}
, {
"box" : {
"maxclass" : "number",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "int", "bang" ],
"patching_rect" : [ 241.0, 62.0, 57.0, 20.0 ],
"id" : "obj-115"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "setdomain $1",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 241.0, 87.0, 89.0, 19.0 ],
"id" : "obj-116"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "dump",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 336.0, 89.0, 43.0, 19.0 ],
"id" : "obj-117"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b b",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 13.0,
"outlettype" : [ "bang", "bang" ],
"patching_rect" : [ 425.0, 189.0, 36.0, 21.0 ],
"id" : "obj-118"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "s points",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 13.0,
"patching_rect" : [ 459.0, 253.0, 55.0, 21.0 ],
"id" : "obj-119"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clear",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 13.0,
"outlettype" : [ "" ],
"patching_rect" : [ 447.0, 214.0, 39.0, 19.0 ],
"id" : "obj-120"
}

}
, {
"box" : {
"maxclass" : "function",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "float", "", "", "bang" ],
"patching_rect" : [ 292.0, 113.0, 132.0, 66.0 ],
"domain" : 5000.0,
"id" : "obj-121",
"addpoints" : [ 0.0, 0.073171, 0, 1458.333374, 1.0, 0, 2583.333252, 0.780488, 0, 5000.0, 0.0, 0 ]
}

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

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

}
, {
"patchline" : {
"source" : [ "obj-117", 0 ],
"destination" : [ "obj-121", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-116", 0 ],
"destination" : [ "obj-121", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-115", 0 ],
"destination" : [ "obj-116", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-118", 0 ],
"destination" : [ "obj-117", 0 ],
"hidden" : 0,
"midpoints" : [ 434.5, 288.0, 527.0, 288.0, 527.0, 88.0, 345.5, 79.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-112", 0 ],
"destination" : [ "obj-121", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-120", 0 ],
"destination" : [ "obj-119", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-121", 2 ],
"destination" : [ "obj-119", 0 ],
"hidden" : 0,
"midpoints" : [ 393.833344, 242.0 ]
}

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ 426.5, 376.0, 426.5, 381.0, 407.0, 381.0, 407.0, 358.0, 346.5, 358.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-114", 0 ],
"destination" : [ "obj-115", 0 ],
"hidden" : 0,
"midpoints" : [ 330.5, 74.0, 330.5, 79.0, 311.0, 79.0, 311.0, 56.0, 250.5, 56.0 ]
}

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

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

}
]
}

}


September 30, 2008 | 6:27 pm

responding to my own post: I should clarify and say that I found instances of the question being asked, but I wasn’t clear on it there was a conclusive resolution….


September 30, 2008 | 6:33 pm

On Sep 30, 2008, at 11:01 AM, Michael Theodore wrote:

> I’m able to send and receive the points from the envelope, but the
> sustain points don’t show up in the receive location.

> Am I simply doing something wrong?

The first thing you’re doing wrong is not using Copy Compressed

Sustain points aren’t sent in a dump, you have to ask for them
separately:

– Pasted Max Patch, click to expand. –

Chris Muir
cbm@well.com

http://www.xfade.com


October 1, 2008 | 3:18 am

Thanks very much for the patch–it’s much appreciated! Sorry about the copy compressed thing. I’m slowly (very slowly) getting with all the wonderful new Max 5 features (in the limited time that I can take away from actually working). Also, I made the mistake of only looking at the help file (which doesn’t mention the getsustain message), and not the man page.

In any case, thank you very much!


October 1, 2008 | 9:11 am

On Sep 30, 2008, at 8:18 PM, Michael Theodore wrote:
> Also, I made the mistake of only looking at the help file (which
> doesn’t mention the getsustain message), and not the man page.

Yeah, it’s easy to forget about the man pages, in the heat of
patching. It’s also worth looking at the popup list when you click on
an inlet. It can be another good bread crumb.

-C


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