Forums > MaxMSP

pat to txt automator

April 4, 2006 | 4:28 pm

pat to txt automator

Max is able to generate a text file out of a patch (and this is no new gospel indeed). What I was trying to do is construct something on which I could throw a bunch op pat files which then would be converted to txt files (I want to perform automated searching). What I did manage to do is a scripted instantiation of such a patch. Then I get stuck. It is possible to ‘script send’ the message write, but is brings up a dialog and doesn’t accept any extra arguments. I noticed that it is allowed to send undocumented messages (such as copy and paste), so I am hopeful that someone has the key to solving this.

_
johan


April 4, 2006 | 8:48 pm

jvkr wrote:
> pat to txt automator

I compiled a command line utility "maxb2maxt" (from sources taken from
the cyclone project) to convert max binary files to text files. The
binary is for OS X, but if you’re adventurous you could compile it for
windows.

http://theendmusic.org/programming/maxb2maxt

If you want to run this from within max, you could use Bill Orcutt’s
shell object or your own java class to execute it.

-charlie


April 4, 2006 | 10:49 pm

Quote: chazen@gmail.com wrote on Tue, 04 April 2006 22:48
—————————————————-
>The binary is for OS X, but if you’re adventurous you could
>compile it for windows.
>
> http://theendmusic.org/programming/maxb2maxt
>

Thanks. I do work on a mac. Where would I stick the binary in order to use it with the shell object.

_
johan


April 4, 2006 | 11:13 pm

anywhere, as long as you /type/the/full/path/to/the/binary

usually, user installed items should go to /usr/local/bin , or in
your home folder ~/bin (which you have to make)

if you want to just type the name (like typing ls rather than /
bin.ls), make sure its in your shells search path. google will give
you details on adding directories to your bash/tcsh search path.

v a d e //

http://www.vade.info
abstrakt.vade.info

I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I
LIVE! I LIVE! I LIVE! I LIVE!

You will not be saved by the Holy Ghost. You will not be saved by the
God Plutonium.

In fact, YOU WILL NOT BE SAVED!


April 5, 2006 | 10:56 am

> usually, user installed items should go to /usr/local/bin , or in
> your home folder ~/bin (which you have to make)
>

Got it working, after some constructive swearing, thanks.

> I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE
> I LIVE! I LIVE! I LIVE! I LIVE!

Yeah, know the feeling.


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