Hello once again,
I made a script, that switches my rackspace variations and/or the pages of an opened pdf file according to an array of integer values. Each value represents the next action my footswitch shall trigger:
1 - next rackspace variation
2 - next pdf page
3 - turn both
So far it works quite well.
Now I would like to be able to go backwards in this script, if I trigger the footswitch twice in a short period of time.
The first time I press on the switch, a timer should start, and after a certain amount of time, a callback function should clear the timer and switch the program forward. Or, if I press the switch a second time, before the timer ends, it should clear the timer and switch backwards.
Is this possible with the On TimePassed() function? I was not able to make it work. But I have no idea, how to use this function at all. The documentation is rather sparse here.
Another solution, that came to my mind was the SendLater() function. I would send a note message on an unused MidiInBlock, and then use the On NoteOnEvent() function.
But the latter does not seem to be called by notes send via SendLater().
Thanks in advance,