XML Feeds

.

[maxmsp] Re: prepending within already existing text

Aaron Faulstich afaulsti at hotmail.com
Tue Jan 1 00:28:34 MST 2008


Here's a quick reply to part of your question : )
The sprintf object is really nice for sticking strings together with no spaces. Here's an example:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 248 100 78 9109513 Add "stut" to end;
#P window linecount 0;
#P message 178 162 15 9109513;
#P window linecount 1;
#P newex 178 128 57 9109513 prepend set;
#P message 178 68 28 9109513 wotw;
#P newex 178 97 67 9109513 sprintf %sstut;
#P comment 214 69 47 9109513 Click Me!;
#P connect 3 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 6;

For adding text into the middle of already existing text I always resort to making my own js objects. Javascript has all kinds of functions for string manipulation.

I hope that helps!


More information about the maxmsp mailing list