Who wants access to Ableton's Python API? .. You? .. Ok!

Discuss music production with Ableton Live.
iainduncan
Posts: 42
Joined: Tue Jun 12, 2012 6:06 pm
Location: BC, Canada
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by iainduncan » Wed Jan 16, 2013 7:18 pm

I saw a response in this thread that copied what sure looks like a Python interactive interpreter talking to the API and introspecting it. Can anyone tell me how this was accomplished? I seemingly can't just drop into pdb from a script, but I would LOVE to be in an interactive interprete.

Thanks!
iain

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by ST8 » Thu Jan 17, 2013 10:32 pm

iainduncan wrote:I saw a response in this thread that copied what sure looks like a Python interactive interpreter talking to the API and introspecting it. Can anyone tell me how this was accomplished? I seemingly can't just drop into pdb from a script, but I would LOVE to be in an interactive interprete.

Thanks!
iain
What you're looking for is LiveTelnet, heres an updated getting started tutorial for it:
http://blog.fluffypattern.ch/?p=226

iainduncan
Posts: 42
Joined: Tue Jun 12, 2012 6:06 pm
Location: BC, Canada
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by iainduncan » Fri Jan 18, 2013 2:08 am

Awesome, thanks so much!

julienb
Posts: 1815
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by julienb » Wed Mar 06, 2013 2:09 pm

Some work made on my spare time:
http://julienbayle.net/ableton-live-9-m ... te-scripts

It works for Live 9.
I have also decompiled Push scripts.
Julien Bayle
____________________________________________________________________________________________________

art + teaching/consulting
ableton certified trainer
____________________________________________________________________________________________________

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by hoffman2k » Mon Mar 11, 2013 10:02 am

julienb wrote:Some work made on my spare time:
http://julienbayle.net/ableton-live-9-m ... te-scripts

It works for Live 9.
I have also decompiled Push scripts.
You still have spare time?
Hey Julien, can I borrow a cup of sugar and Push? :D

julienb
Posts: 1815
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by julienb » Mon Mar 11, 2013 10:27 am

hoffman2k wrote:
julienb wrote:Some work made on my spare time:
http://julienbayle.net/ableton-live-9-m ... te-scripts

It works for Live 9.
I have also decompiled Push scripts.
You still have spare time?
Hey Julien, can I borrow a cup of sugar and Push? :D
:D
Julien Bayle
____________________________________________________________________________________________________

art + teaching/consulting
ableton certified trainer
____________________________________________________________________________________________________

3dot...
Posts: 9996
Joined: Tue Feb 20, 2007 11:10 pm

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by 3dot... » Mon Mar 11, 2013 12:44 pm

great work Julien.. going to dive into this when I have the time..
thanks so much for sharing your work
Image

julienb
Posts: 1815
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by julienb » Mon Mar 11, 2013 5:33 pm

3dot... wrote:great work Julien.. going to dive into this when I have the time..
thanks so much for sharing your work
let me know your explorations too :)
I'm interested !
Julien Bayle
____________________________________________________________________________________________________

art + teaching/consulting
ableton certified trainer
____________________________________________________________________________________________________

NSU_Spray
Posts: 47
Joined: Wed Mar 02, 2011 11:24 am
Location: Russia
Contact:

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by NSU_Spray » Tue Dec 27, 2016 1:10 pm

julienb wrote:Some work made on my spare time:
http://julienbayle.net/ableton-live-9-m ... te-scripts
(: I’m making some work in my spare time too:

Live API actively expands. Documentation which laid out by Hanz Petrov (API_MakeDoc) becomes too cumbersome. It is difficult to search, to compare different versions, to understand what features are added, that has changed.

I spent the time and has made more advanced design of this unofficial documentation:

https://nsuspray.github.io/Live_API_Doc/

I have tried to simplify the search and navigation, to make design more accessible. It has a function of comparing different versions with independent displaying additions, changes, matches. I think you will understand.

Image

Image

Image


eclipxe
Posts: 96
Joined: Thu Dec 27, 2007 2:27 am

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by eclipxe » Wed Dec 28, 2016 5:05 am

This is great thank you!

stutter
Posts: 488
Joined: Tue Sep 05, 2006 3:58 pm

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by stutter » Mon Jan 09, 2017 2:33 pm

THanks NSU_Spray, good stuff

RobrechtV
Posts: 74
Joined: Sat Feb 18, 2017 1:32 pm

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by RobrechtV » Sun Apr 03, 2022 7:10 pm

Hello,

I don't know if this is a good place to ask but there seems to be a lot of Python/Live knowledge in this thread!

I was wondering if there is a way to simply save the current song using Python. I haven't found it in the Live APIs posted here, but you never know!

Context: I would like to add a "save" button to my control surface' remote control script. Ideally, the button would light up as soon as there are unsaved changes, so a listener for the current saved/unsaved state would be useful too.

enteleform
Posts: 1
Joined: Sun Jul 17, 2022 2:12 pm

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by enteleform » Sun Jul 17, 2022 3:07 pm

julienb wrote:
Mon Mar 11, 2013 10:27 am
Some work made on my spare time:
http://julienbayle.net/ableton-live-9-m ... te-scripts
NSU_Spray wrote:
Tue Dec 27, 2016 1:10 pm
(: I’m making some work in my spare time too:
https://nsuspray.github.io/Live_API_Doc/
Thanks for sharing these resources 🙏. They have been extremely helpful in navigating the treacherous waters of the Ableton API ⛈️🚢⛈️

I just managed to get a Python typings generation system for the Live API mostly functional, here's a video demoing IntelliSense completions and Go to Definition functionality:
Image

The types aren't 100% complete, I was able to convert the function signatures pretty thoroughly, but there are a lot of <class 'property'>, etc. types that I had to use Any for. I ended up generating a map of every object path so that I can override value types, return types, and arg types manually if necessary, and filled in the parts of the API that I'll be using most immediately. I'm also going to try setting up an Ableton Set that has most entities available, so that I can try to do a crawl of instantiated classes and get the actual types.

Lmk if this seems interesting/helpful to anyone!

I also posted a bit more about my development setup here:
https://github.com/gluon/AbletonLive9_R ... 1185792347

I'd love to hear about anyone else's personal workflows/systems/etc.!

abzi
Posts: 1
Joined: Sat Aug 05, 2023 11:54 am

Re: Who wants access to Ableton's Python API? .. You? .. Ok!

Post by abzi » Sat Aug 05, 2023 12:02 pm

Hey guys,
I am currently looking for someone that can modify a existing MIDI remote script,
and am willing to compensate the person appropriately for the time spend.
If anyone here is interested, please send a PM.

Best regards

Markus

Post Reply