Hey all,
I want to have a pad that will toggle "solo" when I release it and will toggle "mute" when pressing longer than 1 second.
In the forums I found all kinds of scripts that will execute the first script on press and the second on hold.
But that's not what I am looking for. I want to be able to independently execute the 2 scripts.
Is there a way to do that?
Cheers!
Stevie
Pad with 2 different states on release and hold
Re: Pad with 2 different states on release and hold
Answering my own question here. I worked my way through the script linked in this post (SecondFunction.jzml) :
https://forum.liine.net/viewtopic.php?f ... 73&p=19911
To achieve what I wanted, I just added a ctlout with my parameters right after the line reset = 0; in the function2().
Hope that helps others, who have the same problem
https://forum.liine.net/viewtopic.php?f ... 73&p=19911
To achieve what I wanted, I just added a ctlout with my parameters right after the line reset = 0; in the function2().
Hope that helps others, who have the same problem
Code: Select all
if(reset==1){ //Checks if function 2 has been executed
if(x>0){ //Checks if pad is pressed
if(time-currentTime>delayTime){ //checks if the delay time has passed
ctlout(0,49,127,1); //Past here you second function
reset=0; //Resets the reset
}
}else{
reset = 0;//Resets the reset
ctlout(0,89,127,1); // your action for a long press
[/color] }
}