Forums > MaxMSP

Arguments in subpatches without spaces

December 1, 2006 | 4:33 am

Hello, I’m trying to make a basic subpatch that can be given an integer
argument to tell it where to send some data. However, I cannot seem to get
the patch recognize the argument when the argument is in an object box
without spaces like so: [r CC#1]

According to page 10 of the max 4.6 reference manual, it seems like this
would work. Any insights on the patch below?

max v2;
#N vpatcher 568 157 936 371;
#N comlet Destination Out To Forward;
#P outlet 47 155 15 0;
#N comlet Out High;
#P outlet 171 158 15 0;
#N comlet Out Low;
#P outlet 134 158 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 47 106 68 196617 prepend send;
#P flonum 171 106 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 134 106 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 47 83 185 196617 unpack s 0. 0.;
#P newex 47 56 43 196617 r CC#1;
#P connect 0 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 7 0;
#P connect 1 1 2 0;
#P connect 2 0 5 0;
#P fasten 1 2 3 0 226 101 176 101;
#P connect 3 0 6 0;
#P pop;


December 1, 2006 | 5:07 am

Try putting the argument first – [r #1CC]

Max likes that a lot better :-)


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