A red and yellow box with just one APC20 (or 40)

UHE is now closed. For Technical Support from Ableton, please go here: http://www.ableton.com/support
Locked
ArtsTheBeatdoctor
Posts: 8
Joined: Mon Nov 26, 2007 4:27 pm

A red and yellow box with just one APC20 (or 40)

Post by ArtsTheBeatdoctor » Wed Jan 26, 2011 4:29 pm

Hi all,

I'm trying to customize a Python script so I get two "red boxes" (one of them being yellow) that can move separately. I want them both to be a 4x5 grid, sitting next to each other, and be able to move up and down separately.
I've done some extensive coding in Bomes Midi Translator for other parts of my set. However, I think I need to go Python for this one, which is kinda new for me. I do not own Max4Live. I dug through Hanz Petrov's site and started from there. I'm about halfway. I hope people here can set me on the right track.

There's a decompiled APC20 script on his website which I thought was a good starting point, however, even if I load that one up in Ableton (8.2.1, but double checked on 8.1.4), a red box doesn't even appear (can't see why). So I dismissed this script as a basis for what I want to do.

I then took the ProjectXY script and got a little closer. Here's what I have now:
http://www.artsthebeatdoctor.com/ableto ... 0boxes.zip
(APC20 needs to be in Ableton mode. Assign APC20_links to the APC20 ins and outs, and APC20_rechts too)

- I got to two, 1x5 grids that are moveable apart from eachother (up with Activator, down with solo/cue).
- Clip launch and stop buttons work well (on track 1 and 2)
- Moving one box keeps it in focus, even if it leaves the other one off screen. Simply moving the other one will make it jump into focus on the screen again. Perfect.

The flaws are these:

- Any attempt at making the grids 4x5, will stop them reacting on the clip launch, clip stop and up/down buttons. I don't know what I'm missing but it doesn't work.
- There's no clip feedback to the APC (I think it wasn't needed for the original script being for a midi keyboard with no lights). I would want that functionality back.
- This script works with assigning notes of a specific midi channel to the grid. But, for a 4x5 grid, I would need to be able to send 5(+1 for stop) notes from 4 different channels to the grid. I don't know how to get around this either.
- Selecting a track moves the two grids there. They should be unaffected by track selection.

So, there it is. I have a feeling this script shouldn't be too complicated (if I see Hanz and S4racen's scripting accomplishments, they are a lot more complicated), but with my limited knowledge of python and the Live API, this is how far I got. Maybe starting out from the "traditional" APC20 script would be better, but as I said, I couldn't even get that one to work un-edited.

Hope somebody can help!

Locked