Max4Live - How to have midi msg sent on repeat while holding down midi key?

Any M4L jedi’s out there that can help a M4L noob?

I successfully modified this M4L device to send an ‘Up arrow’ keyboard command (instead of CTRL S) to Ableton when mapped to the UP key on Push 2 user mode.

What I want to do now is to be able to hold down the UP button on Push 2 and have the key command repeatedly sent rather than having to press the UP button a bunch of times.

Does anyone know which parameter I would change to enable a “hold down to repeatedly send midi command” in M4L?

Bonus question:

Anyone know how to make the buttons (not 64 pads) on Push 2 user mode to light up? For ex. I want the Up arrow to light up when in User Mode to show which buttons are midi mapped. I looked at this doc (Section 2.3) and it looks like the CC messages are sent to Live to control the LEDs but I dont know how to have them always lit up

My googlefu seems to not bring up anything on either of the above mentioned questions.

instead of mapping the physical button directly to the ascii key cmd, map the button to turn on a metro (you’ll need to monitor the key up to disable the metro) which itself periodically pings that key command - when you release the physical key the periodic “key presses” would stop

that’s one of a hundred solutions

ps i am suggesting a Max solution which may be trickier with the hardware and M4L than i appreciate

Thanks for the tip. I will give that a try and see if I am successful.

The linked device on Gumroad uses the excellent 11Strokes external which is so simple to setup for sending keystrokes, especially for a noob like me :slight_smile:

I ended up modifying the gumroad device to map the Push 2 user buttons to send up, down, left, right, open project, new project, enter, tab and close vst window. So I can now do some basic stuff like change vst presets without having to always switch to my computer keyboard.

Will report back if I succeed