Changing Matrix Buttons color

5 posts / 0 new
Last post
xanthos
Offline
Joined: 06/20/2010
Changing Matrix Buttons color

Hi,
is there any possibilty to change the colours of the matrix buttons on the APC40 with max4live?
 
Maybe someone already has an patch for it?

Thanks for sharing!

mchenetz's picture
mchenetz
Offline
Joined: 09/17/2009

You can only use that colors available on the APC40? What are you trying to do? The answer is yes it is possible, but you may have to remap some stuff. If you are just looking to change color of existing functionality then it may be better to change the python midi remote script instead.

Mike

xanthos
Offline
Joined: 06/20/2010

I know i can only use the given colours on the APC40 - which is no problem at all.
Well, i am colorblind - but i can differentate between green and red - so i would like to change the standard behaviour from the matrix buttons.

Not Playing: Green -> should be switched to Red!
Playing: Yellow like color -> its okay.

So, if thats possible with Python scripts - i would take them.
But so far i tried to download and install them, but everytime I select them in the Ableton Configuration Panel - i see no red rectangle around the clips (which I would see with the standard configuration from the APC40).

I dont know but the UserConfiguration.txt file inside the Ableton Midi Python Scripts Folder, was not configured by myself to fit the APC40 (Is it necessary to edit the file?)

I actually read half the internet to find a solution for my problem, but i really dont found it yet!

mchenetz's picture
mchenetz
Offline
Joined: 09/17/2009

I will tell you what... If you tell me what colors you want the apc40 to use on the following events then I will modify the script and post them. It is really easy and will take me a few minutes to change the value...

Clip triggered color
Playing color
Armed color

Any other action that you can think of...

Mike

xanthos
Offline
Joined: 06/20/2010

Thank you Mike!

In the meanwhile, Hanz from http://remotescripts.blogspot.com/ replied to me with these details to change the source files to the given colours!

So its already done.

I will post his instructions here, because they are useful for someone else who has the same issue:

To change the clip colours, in the main script (APC40.py, or APC40_20.py, APC40_21.py, or whatever variant you are using), you will need to find and modify the following lines of code:

clip_slot.set_triggered_to_play_value(2)
clip_slot.set_triggered_to_record_value(4)
clip_slot.set_stopped_value(5)
clip_slot.set_started_value(1)
clip_slot.set_recording_value(3)

The values in brackets represent the colours. For the APC40, the possible values are:
0=off, 1=green, 2=green blink, 3=red, 4=red blink, 5=yellow, 6=yellow blink, 7-127=green

So, to change the clip "stopped" colour from yellow to green, and the cip "started" value from green to red, you would change the values as follows:
clip_slot.set_stopped_value(1)
clip_slot.set_started_value(3)

You can make simple edits like this with a plain text editor, such as Notepad.

Thank you all for your help!