Forums > MaxMSP

object suggestion: the opposite of 'route'

May 19, 2013 | 11:47 am

Or does something like this already exist?

It would be great if hovering over the inlets would display which word will be prepended.

 

<pre><code>

– Pasted Max Patch, click to expand. –

</code></pre>

 


May 19, 2013 | 2:15 pm

check the java script based osc-unroute object:

 

http://cnmat.berkeley.edu/patch/4028


May 19, 2013 | 2:18 pm

i forgot to mention it works best in combination with CNMAT’s great  [osc-route] object which uses an OSC based syntax.

very handy


May 19, 2013 | 2:20 pm

Would this help?

 

<pre><code>

– Pasted Max Patch, click to expand. –

</code></pre>

 


May 19, 2013 | 3:48 pm

I’ve used osc-route but ended up using route in most cases (it’s a little bit faster) because in most cases I dont use the /../…/.. hierarchy – I just route on one term.

 

I think the java based osc-unroute was a little slow too. I’m happy with the abstraction I made, I just thought it might make a good object to be included in Max MSP

Mike S – thanks for your patch: that’s a clever way of doing it, I’m going to remember that. In fact the sliders were just there to demostrate how the object works: I’m just thinking something like ‘funnel’ which outputs values but prepended with a textstring rather than a number would be useful.

Cheers!


May 20, 2013 | 1:53 am

Peter Elsea has an Lobject to do this – though it doesn’t do hover. It’s called [Label] but he also refers to it as ‘the Great Prepender’.

Check out Lobjects here:

http://artsites.ucsc.edu/EMS/Music/research/Lobjects.readme.html

best wishes

Richard


May 20, 2013 | 2:20 am

Excellent, thanks Richard!


May 20, 2013 | 3:29 am

I prepared a little JS as an exercise.
<code>

– Pasted Max Patch, click to expand. –

</code>
 

Save below as unroute.js

autowatch = 1;
outlets = 1;

if (jsarguments.length > 0)
{
inlets = jsarguments.length – 1;
}

function anything()
{

var input = arrayfromargs(messagename, arguments);

var index = inlet;

outlet(0, jsarguments[index + 1], input);

}


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