Csound Csound-dev Csound-tekno Search About

Sections: coinciding in time?

Date1998-07-13 00:20
FromPaul Winkler
SubjectSections: coinciding in time?
Is there any way to specify the absolute start time of a section other 
than its placement in a score? I'd like to be able to have two 
independent sections, and merge them to start at the
same absolute time. This would be useful in conjuction with repeats, so 
that I could do something like this:

r 5  ; repeat 3 notes 5 times
i1 0 ...
i1 1 ...
i1 2 ...
r 3  ; repeat 5 notes 3 times STARTING AT SAME TIME AS PREV SECTION
i1 0 ...
i1 1 ...
i1 2 ...
i1 3 ...
i1 4 ...

In an ideal world this capability would support independent tempo 
statements for the simultaneous sections. This would require the 
sections to be pre-processed independently before they are merged and 
sorted into the final score.srt ... 

The only way I can think of to achieve this result currently is to write 
the sections as separate scores, preprocess them with scsort, and then 
append one onto the other and re-sort them. Is there any more elegant 
solution? I kind of think that s and r statements should allow you to 
specify the time that time 0 is relative to ... this would, in my 
opinion, make the standard numeric score easier to work with. But if no 
one else wants this feature, I guess it wouldn't warrant a lot of work 
by the code gurus... 

Actually I just thought of one possible strategy: allow a-statements to 
"advance" backwards by accepting negative arguments. (I tried it just to 
see if it was maybe already implemented, but no such luck.) I don't know 
if that would allow the multiple simultaneous tempii thing, but that may 
be a tall order... I don't know...

thanks all,

PW

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com