Forums > MaxMSP

loadmess bang bang question

April 26, 2007 | 2:03 pm


April 26, 2007 | 2:17 pm


April 26, 2007 | 2:20 pm

If you expect loadmess to have multiple outlets, this is not the case. I suppose loadmess wants to produce a list, which apperently is not allowed to start with the word bang, or int or float for that matter.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 35 134 62 196617 list yep 1 2;
#P message 176 170 57 196617 int 1 e 4 5;
#P newex 99 215 32 196617 print;
#P message 122 144 56 196617 bang 5 6 r;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P connect 0 0 1 0;
#P window clipboard copycount 4;

_
johan


April 26, 2007 | 4:22 pm

can it help you?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 407 140 50 9109513 print A;
#P newex 352 140 50 9109513 print B;
#P newex 297 140 50 9109513 print C;
#P newex 242 140 50 9109513 print D;
#P newex 242 111 175 9109513 unpack b b s s;
#P newex 242 80 170 9109513 loadmess list bang bang mes1 mes2;
#P connect 1 0 2 0;
#P connect 1 1 3 0;
#P connect 1 2 4 0;
#P connect 1 3 5 0;
#P connect 0 0 1 0;
#P window clipboard copycount 6;


April 27, 2007 | 8:33 am


April 27, 2007 | 9:02 am

Replace
loadmess bang bang mes1 mes2
by
loadmess b b mes1 mes2

it works !

max v2;
#N vpatcher 20 74 620 474;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 321 182 41 196617 print 2;
#P newex 321 134 121 196617 loadmess b b mes1 mes2;
#P newex 99 177 41 196617 print 1;
#P newex 99 129 151 196617 loadmess bang bang mes1 mes2;
#P connect 0 0 1 0;
#P connect 2 0 3 0;
#P pop;


April 27, 2007 | 10:01 am


April 27, 2007 | 10:28 am


April 27, 2007 | 11:52 am

Hi,

Just consider bang as a reserved keyword (like int, float, list).If
you want to send different instructions sequentially, loadbang and
triger will do the trick.

Cheers,
ej


April 27, 2007 | 3:43 pm


April 28, 2007 | 6:18 am

derrickgiscloux schrieb:
> it works !

???

The question came upon a basic misunderstanding of the functionality of
loadmess. The old method (loadbang -> t) works, so stick with it…
Anything else is not worth to consider…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


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