Press a button on my launchpad and repeat several times on its own.

Hello! I hope you can help me. I have a Launchpad mk2, and I would like it to be repeated several times when I press a button, that is, it is as if I pressed the same button several times, but I would like Bome to do it just by pressing a button. How could I achieve it?

Hi,

This can be done with a timer. See the following attachment.

The first translator sets the incoming note to global variable ga and then starts a continuous timer “Note Timer” with initial delay of 500ms (1/2 second) and then repeat delay of 150 ms.

The second translator kills the timer when releasing the note

The third translator toggle the value of the note on and off and sends this back to the LED of the LaunchPad. Since this is a LP Pro, you could use different values other than 0 and 1 here for different colors. Or you could send these messages to your application if you would like instead.

The final translator is there to ensure that the final message out is a note off and is also triggered by the button release with a delay of 300ms. If you don’t care whether it ends with LED on or off, it is not necessary.

The way I set up the example is to flash the same LED as the button you pressed but you could change this to any LED if you would like. Since the buttons along the top and right are note notes but CC message you would need to do something similar here but with CC messages instead.

 

I hope this helps!

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 


Attachments:
1573788426343_LP-Hold-Repeat.bmtp