Forums > MaxMSP

Is there an alternative to route?


January 6, 2007 | 7:33 pm

dear list,

i have a query. Is there a way that i am able to build something like route
as an abstraction with the option of changing the argument to route? Am i
right in thinking that you can not change the argument you give route
dynamically? For example:

route 1024 would become route 1032

best regards all

jon cambeul

January 6, 2007 | 7:41 pm

xroute

On 1/6/07, Jon Cambeul wrote:
>
> dear list,
>
> i have a query. Is there a way that i am able to build something like
> route as an abstraction with the option of changing the argument to route?
> Am i right in thinking that you can not change the argument you give route
> dynamically? For example:
>
> route 1024 would become route 1032
>
> best regards all
>
>
> jon cambeul
>
>
>
>
>
>
>
>

January 7, 2007 | 5:58 am

there was a recent discussion about this , check http://tinyurl.com/yc49m4

Quote: jon.cambeul@gmail.com wrote on Sat, 06 January 2007 11:33
—————————————————-
> dear list,
>
> i have a query. Is there a way that i am able to build something like route
> as an abstraction with the option of changing the argument to route? Am i
> right in thinking that you can not change the argument you give route
> dynamically? For example:
>
> route 1024 would become route 1032
>
> best regards all
>
>
> jon cambeul
>
>
>
—————————————————-

January 7, 2007 | 2:53 pm

yes xroute!
i would love to have xroute as UB, i built a workaround-abstraction
in the meanwhile…
best
klaus

max v2;
#N vpatcher 170 394 611 769;
#P window setfont "Sans Serif" 9.;
#P number 259 158 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 226 104 14 196617 1;
#P newex 226 79 32 196617 sel 0;
#P message 226 58 21 196617 $2;
#P newex 226 30 45 196617 loadbang;
#P newex 44 127 92 196617 t l l 2;
#P newex 115 177 50 196617 zl slice 1;
#P newex 248 129 27 196617 – 1;
#P newex 150 80 50 196617 zl slice 1;
#P newex 150 100 61 196617 prepend set;
#P newex 119 228 21 196617 t 1;
#P newex 37 264 35 196617 gate 2;
#P newex 119 206 53 196617 match $1;
#P newex 86 152 41 196617 zl slice;
#P outlet 62 298 15 0;
#P outlet 37 296 15 0;
#P inlet 282 65 15 0;
#P inlet 150 52 15 0;
#P inlet 44 58 15 0;
#P connect 13 2 7 0;
#P connect 8 0 7 0;
#P connect 7 0 3 0;
#P connect 0 0 13 0;
#P connect 13 0 7 1;
#P connect 7 1 4 0;
#P connect 13 1 5 0;
#P connect 5 1 12 0;
#P connect 11 0 5 1;
#P connect 9 0 6 0;
#P connect 12 0 6 0;
#P connect 6 0 8 0;
#P connect 1 0 10 0;
#P connect 10 0 9 0;
#P connect 14 0 15 0;
#P connect 15 0 16 0;
#P connect 16 0 17 0;
#P connect 2 0 11 0;
#P connect 17 0 11 0;
#P connect 16 1 11 0;
#P connect 11 0 18 0;
#P pop;

On Jan 6, 2007, at 8:41 PM, yair reshef wrote:

> xroute
>
> On 1/6/07, Jon Cambeul wrote:
> dear list,
>
> i have a query. Is there a way that i am able to build something
> like route as an abstraction with the option of changing the
> argument to route? Am i right in thinking that you can not change
> the argument you give route dynamically? For example:
>
> route 1024 would become route 1032
>
> best regards all
>
>
> jon cambeul
>
>
>
>
>
>
>
>

January 7, 2007 | 3:12 pm

klaus filip wrote:
> yes xroute!
> i would love to have xroute as UB

Like this one?
http://www.akustische-kunst.org/maxmsp/download/xroute-Max4.6UB.zip

Olaf

January 7, 2007 | 3:39 pm

Thanks for the help klaus, very much appreciated.

jc

http://www.somethingonline.org

On 1/7/07, klaus filip wrote:
>
> yes xroute!i would love to have xroute as UB, i built a
> workaround-abstraction in the meanwhile…
> best
> klaus
>
> max v2;
> #N vpatcher 170 394 611 769;
> #P window setfont "Sans Serif" 9.;
> #P number 259 158 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P message 226 104 14 196617 1;
> #P newex 226 79 32 196617 sel 0;
> #P message 226 58 21 196617 $2;
> #P newex 226 30 45 196617 loadbang;
> #P newex 44 127 92 196617 t l l 2;
> #P newex 115 177 50 196617 zl slice 1;
> #P newex 248 129 27 196617 – 1;
> #P newex 150 80 50 196617 zl slice 1;
> #P newex 150 100 61 196617 prepend set;
> #P newex 119 228 21 196617 t 1;
> #P newex 37 264 35 196617 gate 2;
> #P newex 119 206 53 196617 match $1;
> #P newex 86 152 41 196617 zl slice;
> #P outlet 62 298 15 0;
> #P outlet 37 296 15 0;
> #P inlet 282 65 15 0;
> #P inlet 150 52 15 0;
> #P inlet 44 58 15 0;
> #P connect 13 2 7 0;
> #P connect 8 0 7 0;
> #P connect 7 0 3 0;
> #P connect 0 0 13 0;
> #P connect 13 0 7 1;
> #P connect 7 1 4 0;
> #P connect 13 1 5 0;
> #P connect 5 1 12 0;
> #P connect 11 0 5 1;
> #P connect 9 0 6 0;
> #P connect 12 0 6 0;
> #P connect 6 0 8 0;
> #P connect 1 0 10 0;
> #P connect 10 0 9 0;
> #P connect 14 0 15 0;
> #P connect 15 0 16 0;
> #P connect 16 0 17 0;
> #P connect 2 0 11 0;
> #P connect 17 0 11 0;
> #P connect 16 1 11 0;
> #P connect 11 0 18 0;
> #P pop;
>
> On Jan 6, 2007, at 8:41 PM, yair reshef wrote:
>
> xroute
>
> On 1/6/07, Jon Cambeul wrote:
> >
> > dear list,
> >
> > i have a query. Is there a way that i am able to build something like
> > route as an abstraction with the option of changing the argument to route?
> > Am i right in thinking that you can not change the argument you give route
> > dynamically? For example:
> >
> > route 1024 would become route 1032
> >
> > best regards all
> >
> >
> > jon cambeul
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>

January 7, 2007 | 3:41 pm

does the original xroute object work for windows?

On 1/7/07, Olaf Matthes

wrote:
>
> klaus filip wrote:
> > yes xroute!
> > i would love to have xroute as UB
>
> Like this one?
> http://www.akustische-kunst.org/maxmsp/download/xroute-Max4.6UB.zip
>
> Olaf
>

January 7, 2007 | 4:18 pm

Jon Cambeul wrote:
> does the original xroute object work for windows?

Yes, it’s here:

http://francois.eudes.free.fr/software/f.e_win%20built.zip

Olaf

January 7, 2007 | 4:22 pm

The shell external is essential for some of my patches. I just tried
Jeremy’s UB version on my new MBP core2 duo Intel running 10.4.8, but
it doesn’t work. Not only is there no output from the left outlet,
but the object freezes max after a while,
Any chance of a solution? I understand this is something Apple must
fix, but isn’t that a bit unreliastic? The mouse(c74) telling the lion
(Apple) what to do?
I would like to sell my old G4 PB, as I’m not rich enough to hold on
to it just to have the privilege of a working shell object.

Regards,

Zip

January 7, 2007 | 4:30 pm

If you understand that this is something Apple must fix, then you
must understand that the problem is out of my hands, as unrealistic
as the chances of a fix are. Wishing won’t make it less so.

We’ve looked into some workarounds, without success, but I’m afraid
that the shell object (not even an official object!) is pretty low
priority right now.

jb

Am 07.01.2007 um 17:22 schrieb Zip Boterbloem:

> The shell external is essential for some of my patches. I just
> tried Jeremy’s UB version on my new MBP core2 duo Intel running
> 10.4.8, but it doesn’t work. Not only is there no output from the
> left outlet, but the object freezes max after a while,
> Any chance of a solution? I understand this is something Apple must
> fix, but isn’t that a bit unreliastic? The mouse(c74) telling the
> lion(Apple) what to do?
> I would like to sell my old G4 PB, as I’m not rich enough to hold
> on to it just to have the privilege of a working shell object.
>
> Regards,
>
> Zip

January 7, 2007 | 4:49 pm

I appreciate your efforts, Jeremy. Let that be clear. I just badly
need a working shell object fpr copying/moving/deleting files/folders/
making MP3’s etc….

Best,

Zip

Op 7-jan-2007, om 17:30 heeft Jeremy Bernstein het volgende geschreven:

> If you understand that this is something Apple must fix, then you
> must understand that the problem is out of my hands, as unrealistic
> as the chances of a fix are. Wishing won’t make it less so.
>
> We’ve looked into some workarounds, without success, but I’m afraid
> that the shell object (not even an official object!) is pretty low
> priority right now.
>
> jb
>
> Am 07.01.2007 um 17:22 schrieb Zip Boterbloem:
>
>> The shell external is essential for some of my patches. I just
>> tried Jeremy’s UB version on my new MBP core2 duo Intel running
>> 10.4.8, but it doesn’t work. Not only is there no output from the
>> left outlet, but the object freezes max after a while,
>> Any chance of a solution? I understand this is something Apple
>> must fix, but isn’t that a bit unreliastic? The mouse(c74) telling
>> the lion(Apple) what to do?
>> I would like to sell my old G4 PB, as I’m not rich enough to hold
>> on to it just to have the privilege of a working shell object.
>>
>> Regards,
>>
>> Zip

January 7, 2007 | 5:56 pm

Hi Zip,

Have you considered a workaround using mxj?


Owen

Zip Boterbloem wrote:
> I appreciate your efforts, Jeremy. Let that be clear. I just badly need
> a working shell object fpr copying/moving/deleting files/folders/making
> MP3’s etc….

January 7, 2007 | 6:16 pm

java can do this (javascript can too, correct me if i’m wrong)

cheers
evan

On Jan 7, 2007, at 4:49 PM, Zip Boterbloem wrote:

> I appreciate your efforts, Jeremy. Let that be clear. I just badly
> need a working shell object fpr copying/moving/deleting files/
> folders/making MP3’s etc….
>
> Best,
>
> Zip
>
> Op 7-jan-2007, om 17:30 heeft Jeremy Bernstein het volgende
> geschreven:
>
>> If you understand that this is something Apple must fix, then you
>> must understand that the problem is out of my hands, as
>> unrealistic as the chances of a fix are. Wishing won’t make it
>> less so.
>>
>> We’ve looked into some workarounds, without success, but I’m
>> afraid that the shell object (not even an official object!) is
>> pretty low priority right now.
>>
>> jb
>>
>> Am 07.01.2007 um 17:22 schrieb Zip Boterbloem:
>>
>>> The shell external is essential for some of my patches. I just
>>> tried Jeremy’s UB version on my new MBP core2 duo Intel running
>>> 10.4.8, but it doesn’t work. Not only is there no output from the
>>> left outlet, but the object freezes max after a while,
>>> Any chance of a solution? I understand this is something Apple
>>> must fix, but isn’t that a bit unreliastic? The mouse(c74)
>>> telling the lion(Apple) what to do?
>>> I would like to sell my old G4 PB, as I’m not rich enough to hold
>>> on to it just to have the privilege of a working shell object.
>>>
>>> Regards,
>>>
>>> Zip
>

January 7, 2007 | 6:38 pm

I used MXJ in a big patch the other day, but ran into problems when I
wanted to build a standalone app. Plus, I find the shell’s UNIX
commands easier to use than Java.
And I don’t exactly relish the idea of redesigning my old patch just
to work around the absence of the shell object. Very hard to explain
to the client why a small change is so time-consuming(read: expensive)

Anyway. Thanks for the tip. Might come in handy for a next project.
Still, the shell object was one of the handiest objects ever for the
stuff I do.

Best,

Zip

Op 7-jan-2007, om 19:08 heeft Owen Green het volgende geschreven:

> Hi Zip,
>
> Have you considered a workaround using mxj?
>
> —
> Owen
>
>
> Zip Boterbloem wrote:
>> I appreciate your efforts, Jeremy. Let that be clear. I just badly
>> need a working shell object fpr copying/moving/deleting files/
>> folders/making MP3’s etc….

January 7, 2007 | 6:59 pm

Zip,

Java has a shell access command, so it should be pretty simple to make
an object that could be almost a drop-in replacement for your various
uses of shell.

As for standalones with Java, there is, of course, the list to ask for
advice.


Owen

Zip Boterbloem wrote:
> I used MXJ in a big patch the other day, but ran into problems when I
> wanted to build a standalone app. Plus, I find the shell’s UNIX commands
> easier to use than Java.

> And I don’t exactly relish the idea of redesigning my old patch just to
> work around the absence of the shell object. Very hard to explain to the
> client why a small change is so time-consuming(read: expensive)

January 8, 2007 | 12:07 am

Op 7-jan-2007, om 20:11 heeft Owen Green het volgende geschreven:

> Zip,
>
> Java has a shell access command, so it should be pretty simple to
> make an object that could be almost a drop-in replacement for your
> various uses of shell.

I didn’t know that. Is this something MXJ offers or a plain all over
the place Java function/object? Windows machines don’t have a shell,
do they?
>
> As for standalones with Java, there is, of course, the list to ask
> for advice.

I did. I got answers, but they were rather involved. Got to draw the
line somewhere when working with tight deadlines. That’s why I prefer
tried and tested solutions and shy away from MXJ in standalones. Too
much unknown/untested territory…
There’s some invaluable stuff in there though, like the possibilty to
compose and send emails etc.

Thanks for your help,

Best,

Zip

>
> —
> Owen
>
>
> Zip Boterbloem wrote:
>> I used MXJ in a big patch the other day, but ran into problems
>> when I wanted to build a standalone app. Plus, I find the shell’s
>> UNIX commands easier to use than Java.
>
>
>
>> And I don’t exactly relish the idea of redesigning my old patch
>> just to work around the absence of the shell object. Very hard to
>> explain to the client why a small change is so time-consuming
>> (read: expensive)
>

January 8, 2007 | 3:26 am

Being able to call shell commands is part of the JAVA library and
nothing special added my the mxj object.

wes


jln
January 8, 2007 | 10:16 am

January 8, 2007 | 10:56 am

On 1/7/07, Olaf Matthes

wrote:
> Jon Cambeul wrote:
> > does the original xroute object work for windows?
>
> Yes, it’s here:
>
> http://francois.eudes.free.fr/software/f.e_win%20built.zip
>
>
> Olaf
>

January 8, 2007 | 10:57 am

cheers thanks for everyones help on that topic

jon

January 8, 2007 | 4:35 pm

Hi,

The aka.shell object is very stable but does not report any shell
output, the input works fine.

can be found here

http://www.iamas.ac.jp/~aka/max/#aka_shell

I’ve got round this but getting a script to write any output to a
file and then loading the file into max. – not very clean but works.

scott

On 7 Jan 2007, at 16:22, Zip Boterbloem wrote:

> The shell external is essential for some of my patches. I just
> tried Jeremy’s UB version on my new MBP core2 duo Intel running
> 10.4.8, but it doesn’t work. Not only is there no output from the
> left outlet, but the object freezes max after a while,
> Any chance of a solution? I understand this is something Apple must
> fix, but isn’t that a bit unreliastic? The mouse(c74) telling the
> lion(Apple) what to do?
> I would like to sell my old G4 PB, as I’m not rich enough to hold
> on to it just to have the privilege of a working shell object.
>
> Regards,
>
> Zip
>

January 9, 2007 | 12:56 am

Zip Boterbloem wrote:

> I didn’t know that. Is this something MXJ offers or a plain all over the
> place Java function/object? Windows machines don’t have a shell, do they?

Shell access is part of vanilla Java. However, as posted above, Topher
has made life easier by already making a little mxj wrapper for it.

Windows does indeed have a shell, of sorts (it’s rubbish though, if bash
is what you’re used to).

>> As for standalones with Java, there is, of course, the list to ask for
>> advice.
>
> I did. I got answers, but they were rather involved. Got to draw the
> line somewhere when working with tight deadlines. That’s why I prefer
> tried and tested solutions and shy away from MXJ in standalones. Too
> much unknown/untested territory…

It’s going to be one of those things that seems involved until you do
it, I guess – I’ve not yet had cause to look seriously at making
standalones of any sort, so the whole thing seems involved to me :)

> There’s some invaluable stuff in there though, like the possibilty to
> compose and send emails etc.

Indeed, it’s well worth the effort, IMO. In any case, if Topher’s thing
can do what you need, you may get away without having to go there yet.


f.e
January 9, 2007 | 8:23 am

> Shell access is part of vanilla Java. However, as posted above, Topher
> has made life easier by already making a little mxj wrapper for it.
Topher could have answered this a year & a half ago when i was tearing
my ass on my own shell wrapper because his one wasn’t working for
windows. He could have said, simply : my syscommand doesn’t work on your
computer because you’re on windows & you don’t have a shell.
>
> Windows does indeed have a shell, of sorts (it’s rubbish though, if
> bash is what you’re used to).
No. No shell on windows the way people think of a shell. We got a rough
dos command box, with no fancy syntax, and 15-20% of all you can do with
bash. Nevertheless, there’s a few shell ports like the bash from cygwin,
the one from microsoft, PowerShell, and so on. If you need your
application to be portable, means you’ll have to keep your command
syntax, maybe you’ll find a 3rd party shell to install on windows and
test it with my fe.shell Java wrapper. I haven’t done Java since a few
months and my goal is more to port this kind of objects to pure C at the
moment, but i may find time to fix things if you send feedback.

DOSHack —> wrapper for built-in DOS command prompt in Windows XP
fe.shell —> experiments around a 3rd party shell wrapper for XP.

cheers

f.e
>
>>> As for standalones with Java, there is, of course, the list to ask
>>> for advice.
>>
>> I did. I got answers, but they were rather involved. Got to draw the
>> line somewhere when working with tight deadlines. That’s why I prefer
>> tried and tested solutions and shy away from MXJ in standalones. Too
>> much unknown/untested territory…
>
> It’s going to be one of those things that seems involved until you do
> it, I guess – I’ve not yet had cause to look seriously at making
> standalones of any sort, so the whole thing seems involved to me :)
>
>> There’s some invaluable stuff in there though, like the possibilty to
>> compose and send emails etc.
>
> Indeed, it’s well worth the effort, IMO. In any case, if Topher’s
> thing can do what you need, you may get away without having to go
> there yet.
>

February 2, 2007 | 10:20 pm

I am also stuck on this – (no stdout from java on Intel)

I have tried

direct Java on the getRuntime().exec() object (process.getInputStream() returns nothing)

Topher’s mxj syscommand wrapper (uses the same code so not surprise) and

the aka.shell external redirecting to a file, both directly and via a shell script and the best i can get out of it is a zero size file.

So it seems like there’s something in the "environment" any mxj shell process is executing in prevents it sending anything out (via STDIN or STDERR).

Does anyone have any ideas? Or does one of these work for you (anyone)?

Thanks in advance

jonny

(p.s. i found another thread about the same thing – http://www.cycling74.com/forums/index.php?t=msg&th=20662)

February 3, 2007 | 12:26 am

I can (finally) confirm that the getRuntime().exec() object does return output when run in Java in a Java swing app (applet wasn’t allowed to)

So it’s not down to Java…

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

Forums > MaxMSP