Forums > MaxMSP

pattrstorage/bpatcher/matrix

May 18, 2006 | 8:29 am

De: transition@skynet.be
Objet:
Date: 18 mai 2006 10:26:31 GMT+02:00

Hello,

I try to send the message "interp matrixctrl off" to a matrix(name
matrixctrl) in a bpatcher with no success. When I send the same message
to a matrix (name: matrixctrl2) in the main patch it works, the
clientwindow report the change, interp goes off. I need to send this
message because the matrix do not keep the preset during the
interpolation (from 1. to 2.) if it’s not off, so the matrix inside my
mainpatch do what it’s need but not the one in the bpatch which is the
one i need to do it in my project. See an exemple of the dilema below.
I must miss something obvious but don’t get it even going throug manuel
>pattr>hubpattr>autopattr

thanks in advance for any lights
Franck

max v2;
#N vpatcher 448 259 1045 688;
#P user matrixctrl 319 289 130 66 MatrixDefaultCell.pct
MatrixDefaultBkgnd.pct 130 66 16 16 8 4 16 16 1 1 48 2 5120 0;
#P objectname matrixctrl2;
#P window setfont "Sans Serif" 9.;
#P number 26 262 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 62 262 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P bpatcher 78 293 229 81 -3 -26 essaipattr 0;
#P objectname essaipattr;
#P newex 62 218 53 196617 autopattr;
#X prestore matrixctrl2 96 0 0 0 0 0 1 0 0 2 0 0 3 1 1 0 0 1 1 0 1 2 1
1 3 1 2 0 0 2 1 0 2 2 0 2 3 1 3 0 0 3;
#X prestore matrixctrl2 96 40 1 0 3 2 0 3 3 1 4 0 0 4 1 0 4 2 0 4 3 1 5
0 0 5 1 0 5 2 0 5 3 1 6 0 1 6 1 0 6 2;
#X prestore matrixctrl2 96 80 0 6 3 0 7 0 0 7 1 0 7 2 0 7 3 0;
#X prestore number 1 0 0;
#X prestore number[1] 1 0 0;
#P objectname u669000040;
#P message 238 103 42 196617 store 3;
#B color 2;
#P message 101 147 14 196617 3;
#B color 9;
#P message 82 147 14 196617 2;
#B color 9;
#P message 63 147 14 196617 1;
#B color 9;
#P message 190 103 42 196617 store 2;
#B color 2;
#P message 143 103 42 196617 store 1;
#B color 2;
#P newex 63 102 42 196617 r to_ps;
#P flonum 234 146 35 9 1. 2. 3 3 0 0 0 156 179 255 222 222 222 0 0 0;
#P newex 49 195 157 196617 pattrstorage essai @savemode 0;
#B color 5;
#X interp matrixctrl2 0 0.;
#X client_rect 90 482 730 722;
#X storage_rect 10 59 650 299;
#P objectname essai;
#P message 167 40 110 196617 interp matrixctrl2 off;
#P message 403 40 102 196617 interp number linear;
#P message 299 40 89 196617 interp number off;
#P message 49 40 104 196617 interp matrixctrl off;
#P connect 13 0 16 0;
#P fasten 6 0 4 0 68 123 54 123;
#P fasten 5 0 4 0 239 181 54 181;
#P fasten 7 0 4 0 148 123 54 123;
#P fasten 8 0 4 0 195 123 54 123;
#P fasten 10 0 4 0 87 173 54 173;
#P fasten 9 0 4 0 68 173 54 173;
#P fasten 11 0 4 0 106 173 54 173;
#P fasten 12 0 4 0 243 123 54 123;
#P fasten 3 0 4 0 172 97 54 97;
#P fasten 2 0 4 0 408 97 54 97;
#P fasten 1 0 4 0 304 97 54 97;
#P connect 0 0 4 0;
#P connect 13 0 15 0;
#P fasten 13 0 17 0 67 248 324 248;
#P pop;


May 18, 2006 | 9:19 am

My first guess would be a naming conflict. Some words are reserved, and
naming a matrixctrl "matrixctrl" doesn’t sound like a very good idea
namespace wise. This is probably the reason why matrixctrl2 does work.

hth, -thijs


May 18, 2006 | 4:50 pm

thanks thijs for your suggestion but changing the name of matrixctrl
(to matrixctrl3 or even tutut3) do not fix the problem.
Any other ideas?
Franck
exemple below

max v2;
#N vpatcher 369 48 966 477;
#P user matrixctrl 319 289 130 66 MatrixDefaultCell.pct
MatrixDefaultBkgnd.pct 130 66 16 16 8 4 16 16 1 1 48 2 5120 0;
#P objectname matrixctrl2;
#P window setfont "Sans Serif" 9.;
#P number 26 262 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 62 262 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P bpatcher 80 294 229 81 -3 -26 essaipattr 0;
#P objectname essaipattr;
#P newex 62 218 53 196617 autopattr;
#X prestore matrixctrl2 96 0 0 0 0 0 1 0 0 2 0 0 3 1 1 0 0 1 1 0 1 2 1
1 3 1 2 0 0 2 1 0 2 2 0 2 3 1 3 0 0 3;
#X prestore matrixctrl2 96 40 1 0 3 2 0 3 3 1 4 0 0 4 1 0 4 2 0 4 3 1 5
0 0 5 1 0 5 2 0 5 3 1 6 0 1 6 1 0 6 2;
#X prestore matrixctrl2 96 80 0 6 3 0 7 0 0 7 1 0 7 2 0 7 3 0;
#X prestore number 1 0 0;
#X prestore number[1] 1 0 0;
#P objectname u977000027;
#P message 238 103 42 196617 store 3;
#B color 2;
#P message 101 147 14 196617 3;
#B color 9;
#P message 82 147 14 196617 2;
#B color 9;
#P message 63 147 14 196617 1;
#B color 9;
#P message 190 103 42 196617 store 2;
#B color 2;
#P message 143 103 42 196617 store 1;
#B color 2;
#P newex 63 102 42 196617 r to_ps;
#P flonum 234 146 35 9 1. 2. 3 3 0 0 0 156 179 255 222 222 222 0 0 0;
#P newex 49 195 157 196617 pattrstorage essai @savemode 0;
#B color 5;
#X interp matrixctrl2 0 0.;
#X client_rect 374 600 1014 840;
#X storage_rect 10 59 650 299;
#P objectname essai;
#P message 167 40 110 196617 interp matrixctrl2 off;
#P message 403 40 102 196617 interp number linear;
#P message 299 40 89 196617 interp number off;
#P message 49 40 80 196617 interp tutu3 off;
#P connect 13 0 16 0;
#P fasten 6 0 4 0 68 123 54 123;
#P fasten 5 0 4 0 239 181 54 181;
#P fasten 7 0 4 0 148 123 54 123;
#P fasten 8 0 4 0 195 123 54 123;
#P fasten 10 0 4 0 87 173 54 173;
#P fasten 9 0 4 0 68 173 54 173;
#P fasten 11 0 4 0 106 173 54 173;
#P fasten 12 0 4 0 243 123 54 123;
#P fasten 3 0 4 0 172 97 54 97;
#P fasten 2 0 4 0 408 97 54 97;
#P fasten 1 0 4 0 304 97 54 97;
#P connect 0 0 4 0;
#P connect 13 0 15 0;
#P fasten 13 0 17 0 67 248 324 248;
#P pop;


May 19, 2006 | 12:29 pm

Hello Franck,

it seems that you forgot to post the bpatcher "essaipattr" in your example
patch.
it would be helpful to understand exactly where is your problem…

best

MAthieu Chamagne


May 19, 2006 | 1:18 pm

interp "interp bpatcher_name::matrixctrl off"


May 21, 2006 | 6:15 pm

Hello mathieu,
I just discover I miss out your response. Sorry to not respond sooner.
Meanwhile i fond the solution, sending to a bpatcher from a top level
patch through pattrstorage needs to send specially to it (interp
blabla: tagada off) what i was missing.
Thanks for your reply anyway :-)
Franck

franck.beaubois@skynet.be

http://users.skynet.be/transition/


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