Page 2 of 2
Re: I couldn't help myself...
Posted: Wed Nov 11, 2009 8:34 pm
by Tone Deft
my head just exploded.
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??????
Re: I couldn't help myself...
Posted: Wed Nov 11, 2009 8:49 pm
by cassiel.com
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.
Re: I couldn't help myself...
Posted: Wed Nov 11, 2009 9:20 pm
by Tone Deft
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!
Re: I couldn't help myself...
Posted: Wed Nov 11, 2009 9:49 pm
by gavspav
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!
Re: I couldn't help myself...
Posted: Thu Nov 12, 2009 12:47 am
by technog0d
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.
Re: I couldn't help myself...
Posted: Wed Jan 20, 2010 1:02 pm
by macduff
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
Re: I couldn't help myself...
Posted: Wed Jan 20, 2010 1:12 pm
by cassiel.com
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?
Re: I couldn't help myself...
Posted: Wed Jan 20, 2010 1:27 pm
by macduff
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?
Re: I couldn't help myself...
Posted: Wed Jan 20, 2010 11:26 pm
by Pipotron4000
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
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

Re: I couldn't help myself...
Posted: Thu Jan 21, 2010 11:11 am
by cassiel.com
@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...
Re: I couldn't help myself...
Posted: Thu Jan 21, 2010 1:56 pm
by macduff
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.