General
Need help with a delay between functions
Started by iceleben on .
Sign in or create an account to join the conversation.
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
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
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.
Hi Phil,
thanks for your answer.Do you have any examples of the envelope or time variable?
thanks for your answer.Do you have any examples of the envelope or time variable?
Got it,
found a good example from Softcore and tweaked it. Now I just have to check if this solves my Problem
DelayedExpression.jzml
found a good example from Softcore and tweaked it. Now I just have to check if this solves my Problem
DelayedExpression.jzml
I used a MIDI clock as an interval timer to introduce a delay between sending sysex strings to an older synth.