Forums > MaxMSP

#1 and $1 in an abstraction

April 6, 2006 | 3:04 pm

Hi all,

I noticed something,
I wanted to use a message box intead of a pack object in an abstraction.
It seems lika when a message contains #1 and $1, $2…, dollars do not
seem to work anymore…
Did you ever have the smae trouble ?

Thanks.
Seb.T


April 6, 2006 | 4:33 pm

Did you combine them into 1 message? If so, how? #1 has to be at the
beginning of a symbol (#1#2 doesn’t work, you need to concat), $ needs a
white space in front. afaik there is no problem with these and abstractions.
[#1something $1 #2] should work just fine for example.

hth, T_


April 6, 2006 | 4:55 pm

Internally to Max #1 and $1 are sort of the same thing. Not quite,
but close enough to confuse people.

Your best bet is to avoid #-arguments in a message box. Instead you
can loadbang the values in.

[loadmess set #1] -> messagebox

Hope this helps,
Peter

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/


April 6, 2006 | 5:18 pm

Really Peter? Why would you do that? As far as I know, there’s no
problem using #1 and $1 in message box. The #1 will be store in the
max file as $1 and the $1 as $1 but who cares? You don’t even have
to think about that.

Sebastien, can you post something wich could explain your question?

Best,
ej

#P window setfont "Sans Serif" 9.;
#P number 166 117 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 60 73 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P message 60 117 61 196617 ; $1-toto $1;
#P window linecount 1;
#P newex 166 73 54 196617 r $1-toto;
#P connect 0 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 4;


April 6, 2006 | 5:21 pm

I must say I have never had any problem with # arguments in a message
box, nor with using both # and $ arguments in the same box. It always
seems to work fine, as long, of course as each is at the beginning of a
symbol.

Best

L

Lawrence Casserley – lawrence@lcasserley.co.uk
Lawrence Electronic Operations – http://www.lcasserley.co.uk
Colourscape Music Festivals – http://www.colourscape.org.uk


April 6, 2006 | 6:31 pm

On 6-Apr-2006, at 19:18, Emmanuel Jourdan wrote:
> The #1 will be store in the max file as $1 and the $1 as $1

You’re right, I forgot that the $1 in a message box was escaped
inside the patcher file. I just remembered that the #1 was really a
dollar atom internally.

Then Sebastien’s problem is more fundamental.

– Peter


April 6, 2006 | 7:28 pm

Thank you all for your answers, with all that, i should be able to
understand what i was doing wrong :-)
Cheers and thank again for your help.
Seb.T


April 6, 2006 | 11:58 pm

a # in a messagebox only works when the object
is loaded, a # in an [i] or [f] object box can
be loadbanged and then it will also work when
you change the arguments to the patcher – which
is the main idea behind arguments.


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