awesome, thanks so much for putting together a max patch - it works perfectly for what I asked.
the setup I have is a little more complex than what I said. There are a few other elements
- track 1 is an audio track, not a midi track (I'm running guitar through it with an amp emulator). I notice that key 1 gets kind of confused, doesnt illuminate with mute/unmute properly - I wonder if it is because it is expecting a midi track but getting an audio track instead?
- the Enter button is mapped to activate/deactivate a beat repeat device on a different audio track which I currently have as track 8 (vocals)
- key 8 is mapped to a series of beat repeat devices on all of the tracks, 1-13, toggling them all on and off at the same moment (i have loops on tracks 9-13 that are activated by keys that I don't need to keep illuminated)
I looked at your max patch and don't know where to begin with adding these functions, since it seems pretty specifically geared towards exactly what I was looking for - muting/unmuting midi tracks. Is there a way to make a patch that would toggle the LED lights on and off regardless of whether the keys were mapped to a mute/unmute or an activate/deactivate instrument and so on? So that in addition to however I was mapping it, each button would just toggle its own LED on/off, without needing to write in what it actually affects in ableton?
I should mention that another issue has come up that is pretty strange - the patch did in fact work perfectly at first, but it appears to now longer work at all. I've tried re-downloading it and inserting it into a midi track in exactly the same way as the first, no result. The only thing that I could imagine having an effect is that I looked at it in the max editor, and I have an earlier version of max than you - maybe some backwards compatability issue? But as I said I even redownloaded the original file. Hopefully this latter issue is something obvious that I'll figure out on my own, but currently quite uncanny