$11 $12 $13

Jun 21, 2007 at 9:49pm

$11 $12 $13

uh, once more: a “limit” problem.

i would like to make messageboxes containing variables from $1 to $32.

of course max recognizes “$11″ and up only as symbols. *cries*

what do you do in this situation? splitting the stuff up using zl objects or stacking series of [pak] is too much work in my case.

-110

#32572
Jun 21, 2007 at 10:09pm

you could use ftm.mess if you don’t mind installing the ftm library.

m.

#107475
Jun 21, 2007 at 10:12pm

Dont you mean from $1 to $110 ?

On Jun 21, 2007, at 5:49 PM, Roman Thilenius wrote:

>
>
> uh, once more: a “limit” problem.
>
>
> i would like to make messageboxes containing variables from $1 to $32.
>
> of course max recognizes “$11″ and up only as symbols. *cries*
>
> what do you do in this situation? splitting the stuff up using zl
> objects or stacking series of [pak] is too much work in my case.
>
>
> -110
> –
> http://vst-mac.info/

v a d e //

http://www.vade.info
abstrakt.vade.info

#107476
Jun 21, 2007 at 11:28pm

Check out sprintf. While it won’t do the re-ording that message box
will (e.g. $1 $3 $2 $4) it’s definitely the way to go.

For example:

100 10 3 into

sprintf %d ants sat on %d logs waiting for %d cyclical remarks on the
Max Forum
gives
100 ants sat on 10 logs waiting for 3 cyclical remarks on the Max Forum

Quick sheet on sprintf:
%d int
%f float
%s symbol
%c char (from ascii num)
Also, you’ll need to use as an escape character for commas, etc.

Peter McCulloch

On Jun 21, 2007, at 5:49 PM, Roman Thilenius wrote:

>
>
> uh, once more: a “limit” problem.
>
>
> i would like to make messageboxes containing variables from $1 to $32.
>
> of course max recognizes “$11″ and up only as symbols. *cries*
>
> what do you do in this situation? splitting the stuff up using zl
> objects or stacking series of [pak] is too much work in my case.
>
>
> -110
> –
> http://vst-mac.info/
>
>
http://www.petermcculloch.com

#107477
Jun 21, 2007 at 11:44pm

On 21 juin 07, at 23:49, Roman Thilenius wrote:

> uh, once more: a “limit” problem.
>
> i would like to make messageboxes containing variables from $1 to $32.
>
> of course max recognizes “$11″ and up only as symbols. *cries*
>
> what do you do in this situation? splitting the stuff up using zl
> objects or stacking series of [pak] is too much work in my case.

Can you post an example of what you’re trying to achieve. Zl might be
a way, but there’s maybe other solutions.

ej

#107478
Jun 22, 2007 at 1:43am

yes after peter m

#107479
Jun 22, 2007 at 3:12am

#107480
Jun 22, 2007 at 3:35am

> Sorry, but… why do you need it ? I suppose you have a reason not to
> use prepend set or sprintf instead, but it really escapes me.

yes i might end up using [prepend set] instead of the messagebox, but i loose flexibility that way ;/

it is for example nice to be able to see which “variable” is where in the list.

#107481
Jun 22, 2007 at 6:53am

#107482
Jun 22, 2007 at 2:45pm

> yes i might end up using [prepend set] instead of the messagebox, but i loose flexibility that way ;/
>
> it is for example nice to be able to see which “variable” is where in the list.

Here’s a patch with excessive flexibility. You have your collection of 32 possible values (multislider), and you can choose which values to use and how to format them into a 32 element list using the matrixctrl. Is this more of what you’re after?

max v2;
#N vpatcher 350 31 1235 968;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 154 175 23 9109513 9;
#P comment 154 543 23 9109513 32;
#P comment 154 527 23 9109513 31;
#P comment 154 511 23 9109513 30;
#P comment 154 495 23 9109513 29;
#P comment 154 479 23 9109513 28;
#P comment 154 463 23 9109513 27;
#P comment 154 447 23 9109513 26;
#P comment 154 431 23 9109513 25;
#P comment 154 415 23 9109513 24;
#P comment 154 399 23 9109513 23;
#P comment 154 383 23 9109513 22;
#P comment 154 367 23 9109513 21;
#P comment 154 351 23 9109513 20;
#P comment 154 335 23 9109513 19;
#P comment 154 319 23 9109513 18;
#P comment 154 303 23 9109513 17;
#P comment 154 287 23 9109513 16;
#P comment 154 271 23 9109513 15;
#P comment 154 255 23 9109513 14;
#P comment 154 239 23 9109513 13;
#P comment 154 223 23 9109513 12;
#P comment 154 207 23 9109513 11;
#P comment 154 191 23 9109513 10;
#P comment 154 159 23 9109513 8;
#P comment 154 143 23 9109513 7;
#P comment 154 127 23 9109513 6;
#P comment 154 111 23 9109513 5;
#P comment 154 95 23 9109513 4;
#P comment 154 79 23 9109513 3;
#P comment 154 63 23 9109513 2;
#P comment 154 47 23 9109513 1;
#P newex 241 706 78 9109513 print env_values;
#P newex 213 730 542 9109513 unpack f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f;
#P user multiSlider 241 629 226 72 0. 1. 32 2681 15 0 2 2 0 70 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 178 581 27 9109513 t b l;
#P button 99 786 48 0;
#P newex 99 895 38 9109513 line~ 0.;
#P window linecount 0;
#P message 99 860 731 9109513;
#P window linecount 1;
#P newex 196 812 57 9109513 prepend set;
#P newex 196 787 556 9109513 pak f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f;
#P comment 10 294 142 9109513 PLACEMENT IN OUTPUT LIST;
#P user matrixctrl 178 45 514 514 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 514 514 16 16 32 32 16 16 1 1 49 2 5120 0;
#P message 178 22 28 9109513 clear;
#P newex 196 759 560 9109513 router 32 32;
#P comment 369 585 138 9109513 PLACEMENT IN INPUT LIST;
#P comment 250 610 219 9109513 CREATE LIST OF VALUES TO CHOOSE FROM;
#P comment 178 563 529 9109513 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32;
#P connect 11 0 9 0;
#P fasten 8 0 9 0 201 845 104 845;
#P connect 9 0 10 0;
#P connect 4 0 5 0;
#P connect 5 0 12 0;
#P connect 12 1 3 0;
#P connect 3 0 7 0;
#P connect 7 0 8 0;
#P connect 13 0 14 0;
#P connect 12 0 14 0;
#P connect 14 0 3 1;
#P connect 3 1 7 1;
#P connect 14 1 3 2;
#P connect 3 2 7 2;
#P connect 13 0 15 0;
#P connect 14 2 3 3;
#P connect 3 3 7 3;
#P connect 14 3 3 4;
#P connect 3 4 7 4;
#P connect 14 4 3 5;
#P connect 3 5 7 5;
#P connect 14 5 3 6;
#P connect 3 6 7 6;
#P connect 14 6 3 7;
#P connect 3 7 7 7;
#P connect 14 7 3 8;
#P connect 3 8 7 8;
#P connect 14 8 3 9;
#P connect 3 9 7 9;
#P connect 14 9 3 10;
#P connect 3 10 7 10;
#P connect 14 10 3 11;
#P connect 3 11 7 11;
#P connect 14 11 3 12;
#P connect 3 12 7 12;
#P connect 14 12 3 13;
#P connect 3 13 7 13;
#P connect 14 13 3 14;
#P connect 3 14 7 14;
#P connect 14 14 3 15;
#P connect 3 15 7 15;
#P connect 14 15 3 16;
#P connect 3 16 7 16;
#P connect 14 16 3 17;
#P connect 3 17 7 17;
#P connect 14 17 3 18;
#P connect 3 18 7 18;
#P connect 14 18 3 19;
#P connect 3 19 7 19;
#P connect 14 19 3 20;
#P connect 3 20 7 20;
#P connect 14 20 3 21;
#P connect 3 21 7 21;
#P connect 14 21 3 22;
#P connect 3 22 7 22;
#P connect 14 22 3 23;
#P connect 3 23 7 23;
#P connect 14 23 3 24;
#P connect 3 24 7 24;
#P connect 14 24 3 25;
#P connect 3 25 7 25;
#P connect 14 25 3 26;
#P connect 3 26 7 26;
#P connect 14 26 3 27;
#P connect 3 27 7 27;
#P connect 14 27 3 28;
#P connect 3 28 7 28;
#P connect 14 28 3 29;
#P connect 3 29 7 29;
#P connect 14 29 3 30;
#P connect 3 30 7 30;
#P connect 14 30 3 31;
#P connect 3 31 7 31;
#P connect 14 31 3 32;
#P pop;

#107483
Jun 22, 2007 at 7:00pm

> Also, I’d like to suggest that you uses [zl reg] which is made for
> storing lists instead of message box which is made to do many things.
>

Also, if you haven’t already, check out the mxj list objects. They do
lots of useful things such as ordering, multiplexing, and permutation,
which sound like the kinds of things you might be interested in for
this project.

Peter McCulloch

#107484

You must be logged in to reply to this topic.