Need help with a delay between functions

Discuss Lemur and share techniques.
Post Reply
iceleben
Newbie
Posts:17
Joined:17 Sep 2012 09:10
Need help with a delay between functions

Post by iceleben » 12 Jun 2015 10:14

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

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Need help with a delay between functions

Post by Phil999 » 12 Jun 2015 14:23

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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

iceleben
Newbie
Posts:17
Joined:17 Sep 2012 09:10

Re: Need help with a delay between functions

Post by iceleben » 13 Jun 2015 00:29

Hi Phil,
thanks for your answer.Do you have any examples of the envelope or time variable?

iceleben
Newbie
Posts:17
Joined:17 Sep 2012 09:10

Re: Need help with a delay between functions

Post by iceleben » 13 Jun 2015 14:37

Got it,
found a good example from Softcore and tweaked it. Now I just have to check if this solves my Problem :D
Attachments
DelayedExpression.jzml
(7.4KiB)Downloaded 143 times

oldgearguy
Regular
Posts:315
Joined:02 Nov 2013 11:19

Re: Need help with a delay between functions

Post by oldgearguy » 21 Jun 2015 23:33

I used a MIDI clock as an interval timer to introduce a delay between sending sysex strings to an older synth.

Post Reply