src/Examples/FLOSS Manual Examples/03 Csound Language/03C17_Timout_different_durations.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -odac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | sr = 44100 |
| 7 | ksmps = 32 |
| 8 | nchnls = 2 |
| 9 | 0dbfs = 1 |
| 10 | |
| 11 | giSine ftgen 0, 0, 2^10, 10, 1 |
| 12 | |
| 13 | instr 1 |
| 14 | loop: |
| 15 | timout 0, p3/5, play |
| 16 | reinit loop |
| 17 | play: |
| 18 | kFreq expseg 400, p3/5, 600 |
| 19 | aTone poscil .2, kFreq, giSine |
| 20 | outs aTone, aTone |
| 21 | endin |
| 22 | |
| 23 | </CsInstruments> |
| 24 | <CsScore> |
| 25 | i 1 0 3 |
| 26 | i 1 4 5 |
| 27 | </CsScore> |
| 28 | </CsoundSynthesizer> |
| 29 | ;example by joachim heintz |