Forums > MaxMSP

New Line character in max

May 28, 2009 | 4:19 pm

n is usually the newline character in the programming languages.. but max doesnt recogize the newline character..

i am passing a "string" through my java external, but the n within the string is shown on the screen as a box (a little square box).

does anyone know the newline character that max recognises?

thanks for the help


May 29, 2009 | 11:31 am

Traditionally, Mac OS, Unix, and Windows all used different conventions to flag end-of-line. I’m not sure if Java ‘unifies’ the different OS conventions.

Off-cuff I’d suggest trying r if you’re on Mac OS, but no guarantees. There is probably also documentation for this somewhere, but it may be faster to try the likely candidates than dig through MBs of dox until you find the magic formula.


May 29, 2009 | 6:50 pm

You could use:

System.getProperty("line.separator")

in your external to find the new line String.

jan.


May 29, 2009 | 6:56 pm

sweet! i found a work around though.. maybe this method is efficient, i’ll give it a try too. thanks


May 29, 2009 | 8:11 pm

i always liked the

tag trick in the "pluggo info"
as a sort of linebreak which makes you think "whats
that now and why is it in maxmsp anyway?"

-110


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