New Line character in max

May 28, 2009 at 4:19pm

New Line character in max

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

#44138
May 29, 2009 at 11:31am

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.

#158629
May 29, 2009 at 6:50pm

You could use:

System.getProperty(“line.separator”)

in your external to find the new line String.

jan.

#158630
May 29, 2009 at 6:56pm

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

#158631
May 29, 2009 at 8:11pm

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

#158632

You must be logged in to reply to this topic.