Hey, I'm having trouble trying to loop part of my score. If I wanted to loop this section...
i 5 4 12 80 8
i . + 1 50 .
i . . 1 < .
i . . 1 < .
i . . 0.5 85 .
i . . 0.5 85 .
...how might I proceed? Thanks a lot,
J
Csounds.com |
|
Looping parts of the score
Submitted by Anonymous on Fri, 11/13/2009 - 03:13.
Hey, I'm having trouble trying to loop part of my score. If I wanted to loop this section... i 5 4 12 80 8 ...how might I proceed? Thanks a lot, J |
Support Csounds.comJoin with these Generous Csounders and make a donation to help Csounds.com keep going and growing. Thanks so much!
Another way to help is by purchasing a copy of The Csound Instrument Catalog. User loginPodcast
latest entries:
- browse all the entries - browse by tag - feed URL ![]() - Instructions for listening and submitting your own tracks Recent blog postsSearch |
Re: Looping parts of the score
Hi,
Csound has a number of ways for repeating or looping a group of events in the score. The best answer to your question depends on whether you want to have other events happening alongside of the loop and whether you need to use the looped events again in another section of your piece.
The 'r' score statement begins a new section that can repeat a specified number of times. But you can't overlap that section with anything else.
The '{' and '}' score statements allow to loop arbitrary groups of events and have loops overlap with each other or events not in a loop. These statements are a little bit harder to use though because they do not automatically advance the start times of the events in the loop.
Finally, sometimes score macros are the most convenient way to repeat blocks of score events, but they are also trickier to use.
Check out the descriptions and examples in the manual for more information.
Anthony