Forums > MaxMSP

text object line lengths

October 15, 2006 | 4:37 pm

Is it possible to split the lengths of lines output from the text object?

Here’s a simple example of the problem.

Thanks dave

#P window setfont "Sans Serif" 12.;
#P window linecount 1;
#P comment 195 226 100 196620 2. Output text;
#P button 302 229 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 10;
#P message 295 63 399 196617

Cycling ’74 , along with numerous other
audio hardware and software companies , will be exhibiting October 6-8 at
Moscone Center in San Francisco. Audio
Engineering Society
is the only professional organization devoted
exclusively to audio technology. Come see us in booth 844. We’ll have
extensive JazzMutant Lemur demos as well as
href="/products/maxmsp">Max/MSP and
href="/products/jitter">Jitter. For a free exhibits-only pass , visit
the AES Registration
Site
or stop by our office.

;
#P window linecount 1;
#P newex 15 475 57 196617 zl slice 20;
#P newex 97 496 79 196617 print listLength;
#P newex 97 471 32 196617 zl len;
#B color 5;
#P newex 137 617 61 196617 print sliced;
#P newex 84 576 63 196617 zl slice 1;
#P message 32 415 35 196617 query;
#P newex 115 436 70 196617 print lines;
#P message 337 230 35 196617 line 1;
#P message 1 415 32 196617 dump;
#P message 84 329 35 196617 clear;
#P button 1 382 15 0;
#P message 84 353 28 196617 open;
#P message 84 300 37 196617 read;
#P window setfont "Sans Serif" 12.;
#P newex 84 407 40 196620 text;
#P window setfont "Sans Serif" 9.;
#P newex 84 530 162 196617 regexp @re < .+?> @substitute " ";
#P window setfont "Sans Serif" 12.;
#P window linecount 4;
#P comment 295 296 303 196620 Problem: Text seems to be able to anly output
so many characters at a time. Splitting the list does not help (not worried
at this point about order of split list;
#B color 2;
#P window linecount 5;
#P comment 191 66 100 196620 1.Send long text to message object This is
normally read in as a file;
#P connect 3 1 6 0;
#P connect 6 0 8 0;
#P connect 3 0 16 0;
#P connect 6 0 11 0;
#P connect 17 0 3 0;
#P connect 11 0 3 0;
#P connect 9 0 3 0;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 7 0 3 0;
#P connect 8 0 3 0;
#P connect 16 0 2 0;
#P connect 16 1 2 0;
#P connect 2 0 12 0;
#P connect 3 0 14 0;
#P connect 14 0 15 0;
#P connect 3 2 10 0;
#P connect 12 1 13 0;
#P connect 18 0 9 0;
#P window clipboard copycount 20;


October 15, 2006 | 8:04 pm

OR can anyone suggest any way to get around the 256 character limit of a line in a text object? …..Can anyone help with a jitter solution perhaps?

Thanks


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