Hi Group… Is there a quick way to do this kind of function call (f (f (f (f (x))))) in OpenMusic? Say I would pass a lambda (which is the function f, a OpenMusic patch) and an niter (the number of times I want to compose the function) to a function say “recurse”? Function “recurse” cannot be a lispfun because the function to recurse on is an OpenMusic patch… Any ideas?
If i get you right, you need to use omloop with the accum operator like this:
accum.omp (4.8 KB)
Sounds good! Thank you so much!
Hi Philon. If you want recursive calls - which may be very useful to control various conditions during iteration - it’s possible in OM (because it’s such a great tool!) - check tutorials 38-40.