$11 $12 $13

Roman Thilenius's icon

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

mark henrickson's icon

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

m.

vade's icon

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 //

www.vade.info
abstrakt.vade.info

Peter McCulloch's icon

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/
>
>
www.petermcculloch.com

Emmanuel Jourdan's icon

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

Roman Thilenius's icon

yes after peter m

Emmanuel Jourdan's icon
Roman Thilenius's icon

> 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.

Zachary Seldess's icon

> 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 Patch
Copy patch and select New From Clipboard in Max.


Peter McCulloch's icon

> 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