Decompiled APC40 remote scripts for 8.3

Discuss music production with Ableton Live.
Post Reply
0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Mon Jan 21, 2013 3:29 pm

I really hope someone can point me to some decompiled remote scripts for the APC40 in 8.3. I need to make a minor adjustment to the original APC40 mapping and the scripts I found (8.2.2) are not compatible with 8.3.4.

Anyone?!?

I need to have the pan global controls reflect the track volume settings instead... It's not enough to just midi map then because I need the leds to update if the volume changes.
Last edited by 0x80 on Mon Jan 21, 2013 11:15 pm, edited 1 time in total.

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Mon Jan 21, 2013 3:47 pm

I found this service to decompile Python 2.5, but it's not free.

http://depython.net

JuanSOLO
Posts: 3236
Joined: Sun Jul 15, 2007 8:21 am
Location: Shreveport LA, sometimes Dallas/Ft Worth TX

Re: Decompiled APC40 remote scripts for 8.3

Post by JuanSOLO » Mon Jan 21, 2013 8:51 pm

if you find them, please say so in this thread.
THANKS!

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 2:02 pm

depython charges $50 for decompiling the APC40 scripts. Unless more people are interested and willing to share the costs I think I'll try to look for a different solution.

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 2:49 pm

Hah found a nice free solution here for decompiling python 2.5 - 2.7:
https://github.com/wibiti/uncompyle2

Seems to be working. I'll post the APC40 files tonight 8)

JuanSOLO
Posts: 3236
Joined: Sun Jul 15, 2007 8:21 am
Location: Shreveport LA, sometimes Dallas/Ft Worth TX

Re: Decompiled APC40 remote scripts for 8.3

Post by JuanSOLO » Tue Jan 22, 2013 3:08 pm

I was going to try to get some guys I work with to help today.
I let you know.

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 3:22 pm

Here they are. I don't have my APC here so I can't test but I've checked the logs from Live and they compile fine without errors.

https://dl.dropbox.com/u/8165817/APC40_834.zip

Tonight I'll apply a mod to have the pan encoders reflect the track volumes. I'll let you know how that works out, in case anyone's interested.

The reason I need this is because I need to make jumps in a composition which has volume automation to match certain cues. For this the regular faders are not suitable because they don't move and thus I have no way to correct them after making a jump.

I bought a BCF2000 for just this, but it's bulky and noisy and I figured this would be a much nicer solution.

JuanSOLO
Posts: 3236
Joined: Sun Jul 15, 2007 8:21 am
Location: Shreveport LA, sometimes Dallas/Ft Worth TX

Re: Decompiled APC40 remote scripts for 8.3

Post by JuanSOLO » Tue Jan 22, 2013 4:16 pm

AWESOME thanks.
I'm at work, so I dont have my APC40 either, but I am very interested in learning these ways.

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 8:12 pm

Yep it works like a charm! 8)

I have made changes to the EncModeSelectorComponent.py file, replacing all occurrences of set_pan_control with set_volume_control. Now all the global pan encoders instead reflect the track volumes. You can scroll horizontally through your tracks and the encoders will move with the focus. Just like you're used to for pan and sends.

I've uploaded the mod including the modified py file here:
https://dl.dropbox.com/u/8165817/APC40_volmod.zip

You can just drop the folder in the remote scripts directory and choose APC40_volmod as your control surface. Bam!

Just to be clear. If Live finds the py files in the remote script folder, it automatically compiles them to pyc on startup, since Live contains its own Python compiler. I'm not sure but you probably have to remove the pyc files if you want Live to trigger a recompile on you py sources after you altered them.

Enjoy! :P

JuanSOLO
Posts: 3236
Joined: Sun Jul 15, 2007 8:21 am
Location: Shreveport LA, sometimes Dallas/Ft Worth TX

Re: Decompiled APC40 remote scripts for 8.3

Post by JuanSOLO » Tue Jan 22, 2013 8:19 pm

BOOM, you rock!!!

So what if I wanted to change them to Device 3 parameter 1 for tracks 1-8?

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 8:57 pm

I can only tell you that it will be quite a bit more complicated. If you don't have experience with programming than I'm afraid this is probably way over your head. I don't have the time or motivation to get deeper into this right now, but if you are willing to learn then I think this would be a good start:

http://remotescripts.blogspot.nl/2010/0 ... asses.html

JuanSOLO
Posts: 3236
Joined: Sun Jul 15, 2007 8:21 am
Location: Shreveport LA, sometimes Dallas/Ft Worth TX

Re: Decompiled APC40 remote scripts for 8.3

Post by JuanSOLO » Tue Jan 22, 2013 9:09 pm

oh yeah, I've read all of that, a bunch.
I am assuming Hanz did it by getting the device names.

I ditched efforts to keep pursuing M4L, I think now I am wanting to get back to learning remote script customization.
Your decomiled script is a good place to start so THANKS!

0x80
Posts: 35
Joined: Mon Nov 09, 2009 4:51 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by 0x80 » Tue Jan 22, 2013 9:19 pm

Good luck to you if you're going to give it a try. And once you figure it out I'd love to hear about it.

If I dive into this myself at some point I'll report back.

BaronVonAbelDong
Posts: 108
Joined: Fri Apr 25, 2008 3:32 pm

Re: Decompiled APC40 remote scripts for 8.3

Post by BaronVonAbelDong » Wed Jan 27, 2016 10:36 pm

Hi,

Has anyone done the same mod for the APC40mk2?

Thanks.

Post Reply