Auto Repeat Command while holding button

Discuss Lemur and share techniques.
Post Reply
catmann05
Newbie
Posts: 24
Joined: 29 Oct 2012 14:10

Auto Repeat Command while holding button

Post by catmann05 »

I couldn't find anything like this on the forum or user templates and I believe it is a very useful functionality to have in a Lemur template.

It is easier to explain on an example:

Let's say we have a button (or a pad) that triggers "track up". Everytime we press it, Lemur will send the appropriate command (i.e. track up). Basic.
Now what I am trying to achieve is that if we hold that button down (without releasing), after a time interval of Time1 (about 1 second, for example) the command re-triggers itself at an interval of Time2 (maybe 0.3 seconds).

So that we don't have to press "track up" 20..30 times, for example, to go up in the project's track list. Just hold the button for a while (=Time1) and the command will be repeated with a set frequency (1/Time2).

This functionality could also be built into other commands like BAR+, BAR-, Frame+, Frame- and so on.
catmann05
Newbie
Posts: 24
Joined: 29 Oct 2012 14:10

Re: Auto Repeat Command while holding button

Post by catmann05 »

Thank you, Softcore. That script is good but I was trying to implement something with two time constants. For example after holding for T1= 0.5 seconds it switched to auto-repeat at an interval of T2=0.1 seconds.
The current script repeats it too slow, unless I decrease the "delay" constant witch will trigger the auto-repeat way too early (and it might happen inadvertently).

Scratching my head now to see how I can modify it to achieve that. Also I am not sure about the "on frame" execution scripts. If there are too many then I fear the program will slow down. Or an iPad2 CPU has plenty of headroom?

If anybody can help, it will be much appreciated.
wurlt01
Regular
Posts: 110
Joined: 25 Feb 2012 15:21

Re: Auto Repeat Command while holding button

Post by wurlt01 »

Can someone post two examples of how to do this looked other post explains but I too am learning and would like to add this function to buttons used to scroll lthrough live and also would like to make a note repeat for drum pads or keyboard so can do note repeat like maschine or akai mpc . A drum pad swith note repeats and tempo control and note length would is what I looking to do.
Post Reply