Page 1 of 1

Need help with a delay between functions

Posted: 12 Jun 2015 10:14
by iceleben
Hi,
My Synth does not react very well if I feed him with too many Parameters. So I've splitted a function into several parts. If I use them seperately all works fine but unpredictable if used together. I think it might be a good idea to put a delay between these functions. So if I have a script
function1();
function2();
function3();
function4();
etc...
what would be a good way to put a delay between these functions?

Thanks a lot,
Markus

Re: Need help with a delay between functions

Posted: 12 Jun 2015 14:23
by Phil999
I never needed a delayed function so far, but I think one method would be to use the 'time' variable. Another thought is to use a simple Pads object and its envelope: function1() triggers the pad. When the pad goes to 0 after some milliseconds, function2() and a second pad is triggered, etc. But of course the first method is much better and less complicated, at the same time a bit more demanding in scripting.

Re: Need help with a delay between functions

Posted: 13 Jun 2015 00:29
by iceleben
Hi Phil,
thanks for your answer.Do you have any examples of the envelope or time variable?

Re: Need help with a delay between functions

Posted: 13 Jun 2015 14:37
by iceleben
Got it,
found a good example from Softcore and tweaked it. Now I just have to check if this solves my Problem :D

Re: Need help with a delay between functions

Posted: 21 Jun 2015 23:33
by oldgearguy
I used a MIDI clock as an interval timer to introduce a delay between sending sysex strings to an older synth.