Forums > MaxMSP

Make words appear letter by letter


JvB
April 23, 2009 | 10:02 pm

Hi there

Just started with max/jitter so I’m a newbie here Smile
For a project, I’m reading words from a .txt file with ‘coll’. I want to make the words appear letter by letter, so that it looks/feels like the text is written in real-time. Can someone help me on this one to get me started?

And subquestion for extra bonus points: how do I get some breaks between the lines in the text?

Thanx in advance!



Ch
April 23, 2009 | 10:19 pm

You may be highly interested by the last patch posted (by Stefan Tiedje 3 days ago) on this thread :

http://www.cycling74.com/forums/index.php?t=msg&th=39173&start=0&rid=0&S=2f20ceb3f7c28ce8dea1d07ffad0bf20


April 23, 2009 | 11:11 pm

you could try a piece of javascript…
editfontsize = 14;

var a;
var b = "";

function anything(a){

this.a = arrayfromargs(arguments);

for(i=0;i

this.b+=this.a[i];
this.b+= " ";
post(this.b);
post();

}
}

var counter = 0;
function bang(){// click bang to bang out the next letter

post(this.b.charAt(counter));
counter++;

}



JvB
April 24, 2009 | 9:49 am

Great, thanx. Overlooked the thread by stefan tiedje i guess.


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