| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o t.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
aenv expseg .01, p3*0.25, 1, p3*0.75, 0.01 |
| 19 |
asig poscil3 .8*aenv, p4, 1 |
| 20 |
outs asig, asig |
| 21 |
|
| 22 |
endin |
| 23 |
</CsInstruments> |
| 24 |
<CsScore> |
| 25 |
f 1 0 16384 10 1 ;sine wave |
| 26 |
|
| 27 |
t 0 240 12 30 15 240 ;start tempo = 240 |
| 28 |
|
| 29 |
i 1 0 2 110 ;tempo = 240 |
| 30 |
i 1 3 2 220 ;slow down & |
| 31 |
i 1 6 2 440 ;slow down & |
| 32 |
i 1 9 2 880 ;slow down & |
| 33 |
i 1 12 2 110 ;slow down to 30 at 12 seconds |
| 34 |
i 1 15 2 220 ;speed up to 240 again |
| 35 |
i 1 18 2 440 ;stay at tempo 240 |
| 36 |
i 1 21 2 880 |
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |
| 40 |
|