Dear community,
I would like to know how to enter rests in Csound as conveniently as possible.
I normally use the python programming language for my purposes, for example:
durs = [1, 1, 0.5, 0.5, 3],split()
To get the start times for the events I use a function created by myself:
start = 0
beats = addtimes(durs,start)
The result will be:
[0, 1.0, 2.0, 2.5, 3.0, 6.0]
But how could I handle rests? What if the durations looked like this:
durs =[1,1,0.5,3]
But the Beats should be:
[0,1,2.5,3.0,6.0]
How do you deal with such difficulties?
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here