random text generator

blobo's icon

Hello all,

Pardon my ignorance but I am JUST starting to explore max. I would like to make something that shows a randomly changing text. I heard there is a way to use a text as a source and have the lines rearranged.

Your help is greatly appreciated !

i.m.klif's icon

make a patch using these objects

metro --> random --> text --> message box

use help files (especially text.help) to get started

klif

blobo's icon

Im trying to take lines from a lengthy source 5 pages of text. will this also work ?

i.m.klif's icon

without problem. try it.

On 11/19/08, blobo wrote:
>
> Im trying to take lines from a lengthy source 5 pages of text. will this also work ?
>
>

seejayjames's icon

You could also use jit.uldl to utilize any textfile, including web pages, for your text. The text object will definitely handle large files, the textarea object not as much, but in that one you can see it right in the patch. Maybe use a textarea to display the lines you're randomly selecting.

If you have any knowledge of regexp that could definitely increase your parsing power... :)

eanwhite's icon

The 'coll' object is your new best friend.

.e

On Nov 19, 2008, at 6:16 AM, blobo wrote:

>
> Im trying to take lines from a lengthy source 5 pages of text. will
> this also work ?

i.m.klif's icon

On 11/20/08, Seejay James wrote:
>
> . Maybe use a textarea to display the lines you're randomly selecting.

textarea object??

can't find any references to that object.

did you mean text edit object?

seejayjames's icon

ah yes, I confused the "text edit" object with textareas as on a website.

Lots of formatting and appearance options with text edit too.

Brad Garton's icon

Another approach would be to use LISP. Those of us old enough to
remember RACTER know how much fun it can be...

Check out the bush-o-matic (thankfully to become 'dated' in about 60
days) demo included in the [maxlispj] object.

On Nov 20, 2008, at 2:21 PM, Seejay James wrote:

>
> You could also use jit.uldl to utilize any textfile, including web
> pages, for your text. The text object will definitely handle large
> files, the textarea object not as much, but in that one you can see
> it right in the patch. Maybe use a textarea to display the lines
> you're randomly selecting.
>
> If you have any knowledge of regexp that could definitely increase
> your parsing power... :)
> --
> Interactive Media :: Concepts | Creation | Learning
> http://www.third-space-mind.com/
>

nick rothwell | project cassiel's icon

On 22 Nov 2008, at 02:50, Brad Garton wrote:

> Another approach would be to use LISP.

I'll see your LISP and raise you Groovy and Python (under www.loadbang.net
, the usual routine). And there's Adam's Ruby support; all have access
to Java's native regexp libraries.

Oh, I suppose there's even Javascript, with regexps built in.

    -- N.

Nick Rothwell / Cassiel.com Limited
www.cassiel.com
www.myspace.com/cassieldotcom
www.last.fm/music/cassiel
www.reverbnation.com/cassiel
www.linkedin.com/in/cassiel
www.loadbang.net

Brad Garton's icon

The cups, they all runneth over.

But where's the [FORTRAN~] object? I need it to complete a really
huge big project by tomorrow!

On Nov 22, 2008, at 12:59 PM, Nick Rothwell wrote:

> On 22 Nov 2008, at 02:50, Brad Garton wrote:
>
>> Another approach would be to use LISP.
>
> I'll see your LISP and raise you Groovy and Python (under www.loadbang.net
> , the usual routine). And there's Adam's Ruby support; all have
> access to Java's native regexp libraries.
>
> Oh, I suppose there's even Javascript, with regexps built in.
>
>     -- N.
>
>
> Nick Rothwell / Cassiel.com Limited
> www.cassiel.com
> www.myspace.com/cassieldotcom
> www.last.fm/music/cassiel
> www.reverbnation.com/cassiel
> www.linkedin.com/in/cassiel
> www.loadbang.net
>
>

nick rothwell | project cassiel's icon

On 22 Nov 2008, at 19:06, Brad Garton wrote:

> But where's the [FORTRAN~] object?

I tried using that, but Max 5's curved corners played havok with the
six-space indentation.

    -- N.

Nick Rothwell / Cassiel.com Limited
www.cassiel.com
www.myspace.com/cassieldotcom
www.last.fm/music/cassiel
www.reverbnation.com/cassiel
www.linkedin.com/in/cassiel
www.loadbang.net

Tj Shredder's icon