| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-odac |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
sr = 44100 |
| 7 |
ksmps = 32 |
| 8 |
nchnls = 2 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
instr 1 ; linseg envelope |
| 12 |
aEnv linseg 0.2, 2, 0 ; linseg holds its last value |
| 13 |
aSig poscil aEnv, 500 |
| 14 |
out aSig, aSig |
| 15 |
endin |
| 16 |
|
| 17 |
instr 2 ; line envelope |
| 18 |
aEnv line 0.2, 2, 0 ; line continues its trajectory |
| 19 |
aSig poscil aEnv, 500 |
| 20 |
out aSig |
| 21 |
endin |
| 22 |
|
| 23 |
</CsInstruments> |
| 24 |
<CsScore> |
| 25 |
i 1 0 4 ; linseg envelope |
| 26 |
i 2 5 4 ; line envelope |
| 27 |
</CsScore> |
| 28 |
</CsoundSynthesizer> |
| 29 |
;example by Iain McCurdy and joachim heintz |