XML Feeds

.

[maxmsp] [mxj] and unbreakable spaces

Patrick Delges pdelges at radiantslab.com
Fri Sep 14 09:37:58 MDT 2007


Spaces in "strings" were always problematic in Max (especiallly because 
there is no real string data sructure)...
For some annoying "user friendliness" reason, I want to use buffers 
with spaces in their names (and no quotes). This works when using 
unbreakable spaces (strangely ascii 202 in Max!!).
But I need to use [mxj buf.Op] on these buffers (because [info~] is 
just too stupid to return the number of channels) and unfortunately, 
"set aNameWithUnbreakableSpace" doesn't work. Looks like 
[mxj] translates the space in ascii 160 (which seems to be standard).

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 113 45 43 196617 replace;
#P number 113 140 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 45 89 63 196617 getChannels;
#P message 113 89 62 196617 set foo bar;
#P newex 113 65 82 196617 buffer~ foo bar;
#P newex 113 113 59 196617 mxj buf.Op;
#P connect 5 0 1 0;
#P connect 0 0 4 0;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P window clipboard copycount 6;

Max462 on OSX39.

Please don't move this post to the java list, [mxj buf.Op] should be 
usable as a Max/MSP black box.

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://www.crfmw.be/max


More information about the maxmsp mailing list