pattrstorage @outputmode 1 cause double output

Jan 22, 2006 at 1:36pm

pattrstorage @outputmode 1 cause double output

I just noticed what seems to be a bug in pattrstorage. If @outputmode
is set to 1, updated pattr values are not output once, but twice:

Bug report

Summary:

pattrstorage @outputmode 1 cause output twice

Steps to Reproduce:

Click toggle, watch max window in this patch:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 84 160 32 196617 print;
#P toggle 417 125 15 0;
#P newex 417 160 54 196617 pattr test;
#X prestore 1 0 0;
#P objectname test;
#P newex 84 125 275 196617 pattrstorage @autorestore 0 @savemode 0
@outputmode 1;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname u123000052;
#P connect 0 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 4;

Expected Results:

I’d expect to see “test 1/0″ printed once…

Actual Results:

…but it’s always printed twice

Regression:

Mac TiBook 1GHz
OSX 10.4.4
MaxMSP 4.5.6

Notes:

This cause problems in Jamoma (www.jamoma.org) as any changes of
parameters, and in particular ramps to new values, become more CPU
hungry than they need be. If it is simple to fix, I’d appreciate if
an incremental update of pattrstorage could be maid publicly
available, as I know this problem is affecting a number of users.
Thanks for looking into it.

Best,
Trond

#24034

You must be logged in to reply to this topic.