Need help finding free python or byte code editor for OSX.

Discuss Push with other users.
Post Reply
willdahbe
Posts: 499
Joined: Tue Jan 16, 2007 8:35 am

Need help finding free python or byte code editor for OSX.

Post by willdahbe » Fri Sep 13, 2013 6:27 am

So I'm looking into editing the .pyc file for Push to customize the color of the drum pads for Drumracks.

I'd like to change the colors of soloed/muted pads. Or make it so that all of the pads change color when a pad is soloed.

When I open up the .pyc file in Text Edit (BTW I'm on OSX 10.6.8) the text is pretty jumbled up and doesn't represent the "Skindefault.py" on this page for Seapush. https://github.com/mrk/seapush/blob/mas ... Default.py

If i've read correctly they .pyc files are byte code.

Anyways does anyone know of some good free editors for Mac?

Thanks!

Because789
Posts: 440
Joined: Thu Apr 28, 2011 1:26 pm

Re: Need help finding free python or byte code editor for OSX.

Post by Because789 » Fri Sep 13, 2013 6:56 am

You're right, .pyc files are byte compiled and that means you don't wanna edit them but the decompiled files (the python source code), that are the .py files. These you can find here: https://github.com/gluon/AbletonLive9_R ... aster/Push

But of course you could just edit the Seapush Skindefault.py. To do that just copy the code from the link you posted, paste it into TextEdit, edit to your wishes and save the file to the Push remote script folder under "Skindefault.py". When you start Live the next time the file will be compiled and the existing Skindefault.pyc will be overwritten.

IMPORTANT:
- Always make a backup of the Push remote scripts folder first before you mess around with scripts in case soemthing goes wrong.
- The changes will be overwritten with the next Live update and you have to start from scratch. For that you will need the decompiled scripts from your current Live version which might not be available for some time after a release.

TextEdit is enough to do that, but if you want a more advanced editor with syntax highlighting and what have you, check this link: https://wiki.python.org/moin/PythonEditors
Live 9.5 (64bit), Max 7.0.6, Windows 10, Push 2, Korg electribe2, Bass Station II, Launch Control XL, Faderfox DJ3

M4L

willdahbe
Posts: 499
Joined: Tue Jan 16, 2007 8:35 am

Re: Need help finding free python or byte code editor for OSX.

Post by willdahbe » Fri Sep 13, 2013 7:11 am

Thanks for the quick reply Because789!

This is all a bit over my head right now, but gotta start somewhere. I've already installed Seapush script and reverted back to the factory default skin just to mess around a bit, so at least I'm capable of restoring Push if I jack something up.

Thanks again for the info!

Because789
Posts: 440
Joined: Thu Apr 28, 2011 1:26 pm

Re: Need help finding free python or byte code editor for OSX.

Post by Because789 » Fri Sep 13, 2013 7:53 am

You're welcome :) Yeah, these things can be overwhelming at the begining, but as you say you have to start somewhere and knowing how to restore the original scripts is definitely a great starting point! If you haven't done that yet you should also take the time to read through http://julienbayle.net/ableton-live-9-m ... e-scripts/ to grasp some basic concepts.
Live 9.5 (64bit), Max 7.0.6, Windows 10, Push 2, Korg electribe2, Bass Station II, Launch Control XL, Faderfox DJ3

M4L

Nevileo
Posts: 17
Joined: Thu Sep 19, 2013 1:55 pm

Re: Need help finding free python or byte code editor for OSX.

Post by Nevileo » Fri Sep 20, 2013 7:53 am

*

Nevileo
Posts: 17
Joined: Thu Sep 19, 2013 1:55 pm

Re: Need help finding free python or byte code editor for OSX.

Post by Nevileo » Fri Sep 20, 2013 7:54 am

Image[/img]
willdahbe wrote:So I'm looking into editing the .pyc file for Push to customize the color of the drum pads for Drumracks.

I'd like to change the colors of soloed/muted pads. Or make it so that all of the pads change color when a pad is soloed.

When I open up the .pyc file in Text Edit (BTW I'm on OSX 10.6.8) the text is pretty jumbled up and doesn't represent the "Skindefault.py" on this page for Seapush. https://github.com/mrk/seapush/blob/mas ... Default.py

If i've read correctly they .pyc files are byte code.

Anyways does anyone know of some good free editors for Mac?

Thanks!
Try "vim" it is a code editor for unix systems command line with syntactics highlighting :-)
Image

ansolas
Posts: 379
Joined: Wed Feb 27, 2013 11:01 pm
Location: Earth ~ Europe ~ Germany ~ Cuxheaven

Re: Need help finding free python or byte code editor for OSX.

Post by ansolas » Thu Sep 18, 2014 3:41 pm

Which decompiler do you use under osx ?

doghouse
Posts: 1502
Joined: Fri Aug 29, 2008 5:30 pm

Re: Need help finding free python or byte code editor for OSX.

Post by doghouse » Thu Sep 18, 2014 6:44 pm

Emacs is also available for the Mac...it's already built into Terminal, but there is a standalone version that is easier to use. There is a Python mode for Emacs that understands the syntax and can display keywords in color, etc.

ansolas
Posts: 379
Joined: Wed Feb 27, 2013 11:01 pm
Location: Earth ~ Europe ~ Germany ~ Cuxheaven

Re: Need help finding free python or byte code editor for OSX.

Post by ansolas » Thu Sep 18, 2014 8:03 pm

doghouse wrote:Emacs is also available for the Mac...it's already built into Terminal, but there is a standalone version that is easier to use. There is a Python mode for Emacs that understands the syntax and can display keywords in color, etc.
Emacs and Vim are just a text editor not a decompiler, anyways I managed to decompile with this: https://github.com/wibiti/uncompyle2

Post Reply