orm I think you can use the ‘finally’  clause:

process foo(xyz)
        repeat 100
        dosomething()
        dosomethingelse()
        finally sprout ( foo(123))
end

> On Apr 9, 2017, at 6:30 AM, Orm Finnendahl 
> <orm.finnend...@selma.hfmdk-frankfurt.de> wrote:
> 
> Hi,
> 
> is there an easy way to define a sequence of processes in cm without
> having to determine the length of the process beforehand? As far as I
> know, the recommended way to have multiple processes is using a sprout
> which schedules the processes in parallel and the timing is done with
> the wait which inserts the sprouts at the respective position in the
> queue.
> 
> My idea would be to have the process block until the subprocess
> scheduling is done and then trigger the next iteration of the process
> loop with an optional wait parameter.
> 
> I'm aware of ways to get this mechanism working outside of cm, but as
> I'm teaching cm to my students I would prefer a way with the means of
> cm itself.
> 
> --
> Orm
> 
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> 


_______________________________________________
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to