I couldn't help myself...

Learn about building and using Max for Live devices.
Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: I couldn't help myself...

Post by Tone Deft » Wed Nov 11, 2009 8:34 pm

my head just exploded. :lol:

Live has officially nuked the fridge.

please post this in the twitter thread in the main forum, someone started a thread there to ask people if they twittered. this is too much.

how did you do these??????
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

cassiel.com
Posts: 92
Joined: Mon Aug 14, 2006 6:12 pm
Location: London
Contact:

Re: I couldn't help myself...

Post by cassiel.com » Wed Nov 11, 2009 8:49 pm

I hope nuking the fridge is better than jumping the shark.

The email and Twitter examples are written in Python, which is hosted in Java and embedded in MXJ, which in turn is running inside Max for Live.

I have a download and some documentation for the Python system here:
(Ignore the Max 4 look of it; it's all working in Max 5.)

Mostly I'm using Python for various kinds of algorithmic sequencers and drivers for control surfaces, but thought that a bit of networking API coding would be an interesting exercise.

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: I couldn't help myself...

Post by Tone Deft » Wed Nov 11, 2009 9:20 pm

thanks for the info. I have yet to embed code into a max object, it's on the list of stuff to check out. I'm fine with C, don't know java.

very interesting stuff, many thanks for sharing!
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

gavspav
Posts: 342
Joined: Tue Jul 12, 2005 12:43 am

Re: I couldn't help myself...

Post by gavspav » Wed Nov 11, 2009 9:49 pm

How about writing a patch which puts these forum posts into live?

That way the people who are addicted to the forums could make music at the same time!

technog0d
Posts: 265
Joined: Mon May 26, 2008 1:14 pm
Location: Philly
Contact:

Re: I couldn't help myself...

Post by technog0d » Thu Nov 12, 2009 12:47 am

gavspav wrote:How about writing a patch which puts these forum posts into live?

That way the people who are addicted to the forums could make music at the same time!
Don;t give him any ideas... He will probably do it.
Websites:
Max For Live Community site:
http://www.max4live.info
http://www.noisemakers.info

Controllers: Lemur, Ohm 64, Monome, APC40, Launchpad
Daw: Live 8 Suite
Audio Interfaces: Apogee Ensemble & Duet
Monitors: JBL LSR 4300

macduff
Posts: 6
Joined: Fri Nov 06, 2009 11:37 am

Re: I couldn't help myself...

Post by macduff » Wed Jan 20, 2010 1:02 pm

hi nick

are you accessing the liveapi from within your mxj/jython interpreter? i've understood how to use liveapi from js, but really want to do everything in python using your system

regards

cassiel.com
Posts: 92
Joined: Mon Aug 14, 2006 6:12 pm
Location: London
Contact:

Re: I couldn't help myself...

Post by cassiel.com » Wed Jan 20, 2010 1:12 pm

I honestly haven't looked at LiveAPI - am I right in thinking that this is an internal Pytbon within Live that you connect to via telnet?

macduff
Posts: 6
Joined: Fri Nov 06, 2009 11:37 am

Re: I couldn't help myself...

Post by macduff » Wed Jan 20, 2010 1:27 pm

no, sorry, i mean the javascript LiveAPI object referred to here - http://forum.ableton.com/viewtopic.php? ... 2#p1013932

rephrasing my question - can you directly access m4l objects such as live.path from python running in your mxj/jython interpreter?

Pipotron4000
Posts: 30
Joined: Sat Jan 09, 2010 1:33 am

Re: I couldn't help myself...

Post by Pipotron4000 » Wed Jan 20, 2010 11:26 pm

I'm going to try jython for my padkontrol ;) (already looked at the provided examples)

I will start with a working python API script (i only found NanoPAD Myralfur script and FCB1010 looper script working in AL8) and add some decompiled scripts from AL7 (LiveAPI Google group)
http://bl0rg.net/~manuel/fcb1010-mappings/
http://createdigitalmusic.com/2009/08/1 ... -for-live/
http://groups.google.com/group/liveapi (search on it ;) )

I think it should work

I don't want to start from scratch with Max objects, as i can pick behaviors of other controllers that suit my needs :D

My old config is a blend of Mackie control and Tranzport emulations, with a bit of MIDI Translator to cycle through the browser folders and devices ;)
But i find it boring and complex to tweak (3 parts...)

I will only keep MIDI Translator for specific things not in API (like cycling through folders) and put all others functions in M4L API

Thanks nick rothwell for showing us the jython way ;)

cassiel.com
Posts: 92
Joined: Mon Aug 14, 2006 6:12 pm
Location: London
Contact:

Re: I couldn't help myself...

Post by cassiel.com » Thu Jan 21, 2010 11:11 am

@macduff Erm, no: from Jython I can only directly access things available to Java, or to the MXJ API to allow things like message passing, so you can "call out" into Max and JS, but not in a way that's very convenient...

macduff
Posts: 6
Joined: Fri Nov 06, 2009 11:37 am

Re: I couldn't help myself...

Post by macduff » Thu Jan 21, 2010 1:56 pm

ok - thanks for the answer. yet another feature request for ableton/cycling - to have java wrapping of liveapi/lom

i'll make some kind of bridge to a js object then. it won't stop me being able to run most of my stuff in python, which is what counts. i'm very grateful for your code to be able to do that.

Post Reply