Page 1 of 1
Decompiled APC40 remote scripts for 8.3
Posted: Mon Jan 21, 2013 3:29 pm
by 0x80
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.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Mon Jan 21, 2013 3:47 pm
by 0x80
I found this service to decompile Python 2.5, but it's not free.
http://depython.net
Re: Decompiled APC40 remote scripts for 8.3
Posted: Mon Jan 21, 2013 8:51 pm
by JuanSOLO
if you find them, please say so in this thread.
THANKS!
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 2:02 pm
by 0x80
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.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 2:49 pm
by 0x80
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

Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 3:08 pm
by JuanSOLO
I was going to try to get some guys I work with to help today.
I let you know.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 3:22 pm
by 0x80
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.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 4:16 pm
by JuanSOLO
AWESOME thanks.
I'm at work, so I dont have my APC40 either, but I am very interested in learning these ways.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 8:12 pm
by 0x80
Yep it works like a charm!
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!

Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 8:19 pm
by JuanSOLO
BOOM, you rock!!!
So what if I wanted to change them to Device 3 parameter 1 for tracks 1-8?
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 8:57 pm
by 0x80
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
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 9:09 pm
by JuanSOLO
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!
Re: Decompiled APC40 remote scripts for 8.3
Posted: Tue Jan 22, 2013 9:19 pm
by 0x80
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.
Re: Decompiled APC40 remote scripts for 8.3
Posted: Wed Jan 27, 2016 10:36 pm
by BaronVonAbelDong
Hi,
Has anyone done the same mod for the APC40mk2?
Thanks.