[Solved] Help: button with MIDI routing running twice same function

It's okay to show off

I don’t have the talent to show off. Is this showing off? → https://forum.renoise.com/t/new-tool-3-1-gt16-colors-v1-2a1-updated-12-june-2017/46473

Is Bach showing off here with the BWV 542? → https://youtu.be/8y8mlNOftv0?t=332

Does this code force the button to hold down XXX milliseconds even if the user releases? If so, this is something other than my request.

Well if it is something other than what you requested I can’t do anything about that Raul. When I tried learning a little bit of programming (and it is only a little bit) it was with a Commodore 64 and a very old tatty book that was written for the Commodore PET. You couldn’t just log on to the internet and start requesting/asking/shouting for people to drop everything and give pristine example code that is tailored made. Now listen to the Bach.

^_^I laughed watching the video.

By the way, GT16-Colors is the tool with which I am working.All this code is for him.I do not know if I mentioned it before.

PS. If you’re a perfectionist and want good highlighting of buttons, you can use RGB->HSL->RGB conversion to modify the color. L changes the lightness (which is not the same as increasing R, G and B by the same amount). cLib has some helper functions for this in cColor.lua (iirc).

I will see all this in depth. To begin with, it seems a little complicated.

By the way, maybe some function type loop with “repeat” and “break” serve for what I seek.This is more convoluted…

I want to do something like: Repeat this function several times while the button is still pressed.

Thanks!!!