How to update our .py remote script for L9 ?
-
- Posts: 1135
- Joined: Mon May 31, 2010 12:36 pm
- Contact:
How to update our .py remote script for L9 ?
Hi.
It seems that some changes happened that makes some of the custom python midi remote scripts not working in L9.
Can someone tell us what do we have to change in our scripts?
Hanz Petrov had update his apc40 emulation and fcb1020 scripts, so some people knows what to do...
(hanz are you here?)
Cheers
It seems that some changes happened that makes some of the custom python midi remote scripts not working in L9.
Can someone tell us what do we have to change in our scripts?
Hanz Petrov had update his apc40 emulation and fcb1020 scripts, so some people knows what to do...
(hanz are you here?)
Cheers
-
- Posts: 35
- Joined: Mon Aug 03, 2009 4:12 pm
- Location: Denver
- Contact:
Re: How to update our .py remote script for L9 ?
As I see it (still getting to the most simple solution).
There is a "scene" class that has been added. This needs to be subclassed before you can get close to biz as usual.
I have seen a few ways to go about it and we are determining the best way to address this in rebuilding the Control surface web app for Live9. (modern.dj/app).
My Python chops are growing, but not as strong as I want - we are building a new decompiler to open source more scripts.
The scene class is not a row like you think, I posit that we are looking at a proto "paging" system in the scripts (ergo the higher level almost bootstrap quality).
There is a "scene" class that has been added. This needs to be subclassed before you can get close to biz as usual.
I have seen a few ways to go about it and we are determining the best way to address this in rebuilding the Control surface web app for Live9. (modern.dj/app).
My Python chops are growing, but not as strong as I want - we are building a new decompiler to open source more scripts.
The scene class is not a row like you think, I posit that we are looking at a proto "paging" system in the scripts (ergo the higher level almost bootstrap quality).
closed the user group on purpose.
Re: How to update our .py remote script for L9 ?
I have to spend sometime on the new modules to figure out what they do but here are the most obvious changes:
1. the import of the Capabilities module and the addition of the 'get_capabilities' function in the __init__.py module
2. the import of the 'with_statement' from __future__ module in the main script (must be imported on the 1st line of the script)
3. the use of 'with component_guard()' function under class __init__
4. the use of decorators like '@'
a quick remedy to L8 scripts is to add the with_statement import on the 1st line of the script like this:
from __future__ import with_statement
now under 'def __init__(self, c_instance)' add 'with component_guard()' like this:
class 'scriptName'(ControlSurface):
----def __init__(self, c_instance):
--------ControlSurface.__init__(self, c_instance)
--------with self.component_guard():
------------"continue writing your variables"
the decompiled L9 scripts are available here (search the forum if you don't have them already), take a look at any of the scripts for good examples. of course this is only what my eyes caught so far.
1. the import of the Capabilities module and the addition of the 'get_capabilities' function in the __init__.py module
2. the import of the 'with_statement' from __future__ module in the main script (must be imported on the 1st line of the script)
3. the use of 'with component_guard()' function under class __init__
4. the use of decorators like '@'
a quick remedy to L8 scripts is to add the with_statement import on the 1st line of the script like this:
from __future__ import with_statement
now under 'def __init__(self, c_instance)' add 'with component_guard()' like this:
class 'scriptName'(ControlSurface):
----def __init__(self, c_instance):
--------ControlSurface.__init__(self, c_instance)
--------with self.component_guard():
------------"continue writing your variables"
the decompiled L9 scripts are available here (search the forum if you don't have them already), take a look at any of the scripts for good examples. of course this is only what my eyes caught so far.
it never ends. neither does it begin where you think it does. its only in your mind.
-
- Posts: 1135
- Joined: Mon May 31, 2010 12:36 pm
- Contact:
Re: How to update our .py remote script for L9 ?
Thx for all these informations!
I'll investigate.
Cheers.
I'll investigate.
Cheers.
-
- Posts: 35
- Joined: Mon Aug 03, 2009 4:12 pm
- Location: Denver
- Contact:
Re: How to update our .py remote script for L9 ?
Nice - got scripts updates but the color/box is MIA. Tips are welcome. I will drop a blog post out there for all fo us when I get it under wraps.
Thx mucho.
Thx mucho.
closed the user group on purpose.
Re: How to update our .py remote script for L9 ?
MIA?
also what controller and script are you using?
also what controller and script are you using?
it never ends. neither does it begin where you think it does. its only in your mind.
-
- Posts: 35
- Joined: Mon Aug 03, 2009 4:12 pm
- Location: Denver
- Contact:
Re: How to update our .py remote script for L9 ?
I got it - I will have a blog post out soon, prolly on djnsm.com on how to update simple scripts to 9. You tips helped, but there was more I needed to find.
Thx for being engaged. Hit me via twitter to connect if you want - @djnsm
What script am I using?...my own - I write them. I also wrote the web app that writes live8 scripts (yes Py).
The live9 web app is looking to be OFF THE HOOK!!!! - I will be testing the code and building for the next 2 weeks while I am in NYC. Release for the end fo spring.
These fools better not mess with the API...
Thx for being engaged. Hit me via twitter to connect if you want - @djnsm
What script am I using?...my own - I write them. I also wrote the web app that writes live8 scripts (yes Py).
The live9 web app is looking to be OFF THE HOOK!!!! - I will be testing the code and building for the next 2 weeks while I am in NYC. Release for the end fo spring.
These fools better not mess with the API...
closed the user group on purpose.
Re: How to update our .py remote script for L9 ?
Wicked, I'll be in touch!
Cheers
D
Cheers
D
-
- Posts: 1135
- Joined: Mon May 31, 2010 12:36 pm
- Contact:
Re: How to update our .py remote script for L9 ?
@AbletonDenver
this if funny, because I too used your web-app produced scripts to learn from when I started learning python thanks for the great web-app service man
this if funny, because I too used your web-app produced scripts to learn from when I started learning python thanks for the great web-app service man
it never ends. neither does it begin where you think it does. its only in your mind.
-
- Posts: 7
- Joined: Tue Mar 19, 2013 8:31 am
Re: How to update our .py remote script for L9 ?
@AbletonDenver : Thank you so much for your work !
I'm a new "remote script" user and I have one question about it ! I work on a projct in my engineering school wich is a controller midi (like a Launchpad but I add some potards, faders and an LCD screen) based on a Arduino. I manage to send midi from Arduino to Ableton Live but I can't do it from Ableton to Arduino.
In fact I use a 4*4 box (like Launchpad) but I would that all the clip wich are in this box turn on the right led on my matrix button pad and I would like to receive the color information about these clip (I use RGB led). Is it possible to do it with remote script ? Just someone could help me by giving me an exemple of code. I'm stuck with it :/
I'm a new "remote script" user and I have one question about it ! I work on a projct in my engineering school wich is a controller midi (like a Launchpad but I add some potards, faders and an LCD screen) based on a Arduino. I manage to send midi from Arduino to Ableton Live but I can't do it from Ableton to Arduino.
In fact I use a 4*4 box (like Launchpad) but I would that all the clip wich are in this box turn on the right led on my matrix button pad and I would like to receive the color information about these clip (I use RGB led). Is it possible to do it with remote script ? Just someone could help me by giving me an exemple of code. I'm stuck with it :/
-
- Posts: 12
- Joined: Wed Dec 15, 2010 12:28 pm
Re: How to update our .py remote script for L9 ?
I don't suppose anyone knows where I can get the working decompiled scripts for the APC40?
-
- Posts: 7
- Joined: Tue Mar 19, 2013 8:31 am
Re: How to update our .py remote script for L9 ?
I suppose that you want the decimpilde scripts for Live 9. You can find them here https://github.com/gluon/AbletonLive9_RemoteScriptsquirksmode wrote:I don't suppose anyone knows where I can get the working decompiled scripts for the APC40?
Re: How to update our .py remote script for L9 ?
nevermind. sry.