preset object fourth outlet not working?

Jan 11, 2011 at 2:00am

preset object fourth outlet not working?

Hi-
The preset object indicates that it is supposed to send the preset number that has just been stored out the fourth outlet, but I cannot get anything to be output. Am I understanding this functionality correctly?
I have tried on both Windows 7 and OSX. Not sure if this is a bug or user error/misunderstanding.
Thanks a lot.
-Halsey

#54344
Jan 13, 2011 at 10:56pm

works fine here

Max 5.1.7
OS 10.6.6

#195674
Jan 18, 2011 at 4:25am

thanks for checking…glad to hear it’s working somewhere!

I’m on:
OS 10.6.5
Max 5.1.7

and I still cannot get it to work. Oddly, I tried shift-clicking to store the preset and that does in fact work, but sending a ‘store 1′ message does not send anything out the fourth outlet. And unfortunately, I need to automate some things with presets, so I will not be able to shift-click.

{
“boxes” : [ {
"box" : {
"maxclass" : "message",
"text" : "clearall",
"id" : "obj-6",
"fontname" : "Arial",
"fontsize" : 12.0,
"numinlets" : 2,
"numoutlets" : 1,
"patching_rect" : [ 147.0, 106.0, 49.0, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “< -- number stored (1) should be output here",
“linecount” : 2,
“id” : “obj-4″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1,
“presentation_rect” : [ 336.0, 194.0, 0.0, 0.0 ],
“numoutlets” : 0,
“patching_rect” : [ 336.0, 194.0, 150.0, 34.0 ]
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “< -- click to store preset",
“id” : “obj-2″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1,
“numoutlets” : 0,
“patching_rect” : [ 262.0, 106.0, 150.0, 20.0 ]
}

}
, {
“box” : {
“maxclass” : “number”,
“id” : “obj-5″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1,
“numoutlets” : 2,
“patching_rect” : [ 284.0, 195.0, 50.0, 20.0 ],
“outlettype” : [ "int", "bang" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “store 1″,
“id” : “obj-3″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 203.0, 107.0, 54.0, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “preset”,
“id” : “obj-1″,
“numinlets” : 1,
“numoutlets” : 4,
“patching_rect” : [ 203.0, 142.0, 100.0, 40.0 ],
“outlettype” : [ "preset", "int", "preset", "int" ]
}

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

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

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

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

}
]
}

#195675
Jan 18, 2011 at 5:02am

You are right, with “store 1″ the outlet is not giving you the info. but there is an easy workaround. Since you have to send it a number to store, you already “know” the number!! so there is no need for it to output.

does this solve your problem?

– Pasted Max Patch, click to expand. –
#195676
Jan 18, 2011 at 1:29pm

hey…thanks for this idea. it should work for my situation. still strikes me as weird that the preset object does not behave consistently in this regard; I wonder if this is on purpose or a bug? C74, any comments?!

thanks again for the workaround; should do the trick!

#195677
Oct 28, 2012 at 8:29pm

I’m having the same problem (but in Max 6) and came across this thread via google. I can work around it, but this is either a bug, or a flaw in the documentation, which doesn’t make this clear.

#195678

You must be logged in to reply to this topic.