Forums > MaxMSP

something like [route] but which also passes the first list item?

April 18, 2008 | 2:01 pm

hello
can anyone tell me if there is an object which is like route:

"route takes a message and tries to match its first argument to route’s own arguments"

but which doesn’t cut off the first element before it passes it out?

cheers
mathew


April 18, 2008 | 2:37 pm

you might try the split object

2008/4/18, mathew :
>
>
> hello
> can anyone tell me if there is an object which is like route:
>
>
> "route takes a message and tries to match its first argument to route’s
> own arguments"
>
> but which doesn’t cut off the first element before it passes it out?
>
> cheers
>
> mathew
>


April 18, 2008 | 2:55 pm

or you could just put a "prepend [argument-cut-by-route]" object after
the route.

On Apr 18, 2008, at 10:37 AM, henrik wurster wrote:
> you might try the split object
>
> 2008/4/18, mathew :
> hello
> can anyone tell me if there is an object which is like route:
>
>
> "route takes a message and tries to match its first argument to
> route’s own arguments"
>
> but which doesn’t cut off the first element before it passes it out?
>
> cheers
>
> mathew
>


April 18, 2008 | 3:01 pm

i believe there is an object that does it (xroute?), but if needed i usually
add another instance of the first member before it goes into route.
$1 $1 $2 $3

On Fri, Apr 18, 2008 at 5:37 PM, henrik wurster
wrote:

> you might try the split object
>
> 2008/4/18, mathew :
>
> >
> > hello
> > can anyone tell me if there is an object which is like route:
> >
> >
> > "route takes a message and tries to match its first argument to route’s
> > own arguments"
> >
> > but which doesn’t cut off the first element before it passes it out?
> >
> > cheers
> >
> > mathew
> >
>
>
>
>


April 18, 2008 | 3:06 pm

> 2008/4/18, mathew :
> hello
> can anyone tell me if there is an object which is like route:
>
>
> "route takes a message and tries to match its first argument to
> route’s own arguments"
>
> but which doesn’t cut off the first element before it passes it out?

Regardless of what you might (or might not) think of Jamoma as a
whole, there is a handly little object in Jamoma that you could use.
It’s called jcom.pass and it does exactly this. It also has an
attribute for stripping off the leading slash if you are working with
OSC.

http://jamoma.org

best,
Tim
_________________
Tap.Tools / Teabox / Hipno / Hemisphere

http://electrotap.com


April 18, 2008 | 8:54 pm

hello all,

thanks for the suggestions, i think i’ll be able to solve my problem using one of these,

cheers

mathew


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