what is prepend good for ?

Nov 21, 2010 at 2:09pm

what is prepend good for ?


Im pretty new at Max and have been through all the tutorials in Max but never really understood the use for prepend.

Can someone please help me with this?
and with a couple of examples where I have to use prepend and why

thanks a lot!


Nov 21, 2010 at 2:21pm

It’s great for loading things into [buffer~]/[jit.qt.movie] etc where you can use [dropfile] or [opendialog] to select the target file and then [prepend read] or [prepend open] it. As with all the objects available you shouldn’t feel like you have to use them just because they exist. Wait until youu find a need for them – don’t force yourself to patch a certain way.

The only exception to the rule is [trigger], start using this almost everywhere and you’ll thank me later.

Nov 21, 2010 at 3:34pm


but what does it do exactly?
any other ways I can use it?

For example in a patch like this – why is prepend used here [prepend read]:

– Pasted Max Patch, click to expand. –

another question that came up now:
Is it any reason for why or should I use [trigger b] instead of a [button] for creating a bang?

Nov 21, 2010 at 3:39pm

prepend puts one thing before another thing – so if i have [prepend muffintin] and send it 25.7, it will output the message muffintin 25.7

in that patch it just puts the word ‘prefix’ in front of the path of the folder coming out so you can use the prefix feature of umenu, which I personally have never explored.

Nov 21, 2010 at 8:49pm

Is it any reason for why or should I use [trigger b] instead of a [button] for creating a bang?

For one thing [t b] is considerably more efficient than using the bang graphic object.

In the really dim dark past using [prepend foo] was an overdrive-safe way of generating a message, while using a message box [foo $1] was not. This overdrive restriction went away so long ago that probably only people with long grey beards remember.

Nov 22, 2010 at 12:42pm

prepend also was the only way to prepend a symbol to a list using only one object, because
we did not have [pak] before, it used to be jitter only.

[pak] can do the same as [prepend]:

[pak read anything] = [prepend read]


Nov 23, 2010 at 4:44am

Dude. I have a short grey beard, and I don’t remember that. I’ll keep growing it.


Nov 23, 2010 at 11:09am


Nov 23, 2010 at 5:03pm

Aha! Now I get it. Banging away at [append more_beard] was getting me no place.


Nov 24, 2010 at 2:04pm

I remember it, but I shaved my beard off. Does that mean I have to forget?

Nov 24, 2010 at 7:06pm

Either forget, or lose the razor. No exceptions.

Nov 24, 2010 at 9:10pm

we just pirated the thread, right?

Nov 24, 2010 at 10:50pm

aye aye, blackbeard

Nov 26, 2010 at 7:25am

Blackbeard shaving in the dead of night
Take these broken hairs and learn to cut
All your life
You were only waiting for this moment to arise

Blackbeard shaving in the dead of night
Take your smoothened chin and learn to see
all your life
you were only waiting for this moment to be free

Blackbeard go, Blackbeard go
Into the light of the dark black night.

(back to music…)


You must be logged in to reply to this topic.