Midi Remote Scripts Help: APC40 MKII Step Sequencer playhead and paging not working

Share your favorite Ableton Live tips, tricks, and techniques.
Post Reply
martingrove
Posts: 9
Joined: Sat Feb 04, 2017 4:21 am

Midi Remote Scripts Help: APC40 MKII Step Sequencer playhead and paging not working

Post by martingrove » Sun Nov 28, 2021 8:55 pm

I'm hoping there's somebody out there who can help me, I'm trying to revive some old step sequencer code for my Akai apc40 mkII and I've hit a roadblock.
You can download the script here:

https://github.com/CJmusic/APC40_CJedit ... -sequencer

Here's the changes I've made so far with my script:

- nudge +/- now duplicates and deletes clips respectively
- shift + nudge now nudges
- shift + clip view is undo
- shift + detail view is redo
- shift + bank switches to VU meters modes (courtesy of https://alijamieson.co.uk/2015/04/19/le ... e-scripts/)
- user mode is a step sequencer

There's a few bugs with the code that I'm trying to figure out. The playhead isn't working with the step sequencer and I can't figure it out. I've based the sequencer off this script:

https://github.com/xnamahx/APC40_MkIIx

The playhead part of this script works in Live 10 (I've tested it) I've copied it over with a few python 3 adjustments, I just can figure out how to get my playhead working in Live 11. I'm hoping somebody can give me some advice on where to proceed. It appears as though both the playhead and the loop selector/paginator are busted. It looks like the buttons aren't registering properly, they aren't receiving any midi as they are glowing amber (the color of deactivated background buttons) and only the doublepress function is working on them, not the single press. (You can double tap them to change the length of the clip however you cannot single tap them to change pages).

The other issue is with how I've set up the self._vu.layer = Layer() on line 660 in APC40_cjedit.py. That's causing it to start up weirdly, (once you launch the scrip you'll need to cycle through the pan, sends and user mode buttons a couple times before the script works properly). I've found that I can move that Layer into the init line of the VUMeters componenet such as:

Code: Select all

        self._vu = VUMeters(self, layer= Layer(self._stop_buttons, _scene_launch_buttons = self._scene_launch_buttons, _matrix = self._session_matrix))
However that causes the buttons to glow amber in VU mode (something I don't want).

I'm hoping there's someone out there with an APC40 MK2 who even an MK1 who has a working step sequencer and can give me a hand with the playhead and paginator portions of the script. Any idea what I'm doing wrong?

Post Reply