| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o oscil.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 |
kenv expseg 0.001, p3*0.05, 0.5, p3*0.9, 0.5, p3*0.05, 0.001 |
| 18 |
kc1 linseg 1, p3/2, 12, p3/2, 3 |
| 19 |
kc2 random 0, 4 |
| 20 |
seed 20120124 |
| 21 |
asig gendyx kenv, 1, 3, 0.7, 0.8, 120, 4300, 0.2, 0.7, kc1, kc2, 12, kc1 |
| 22 |
aout dcblock asig |
| 23 |
outs aout, aout |
| 24 |
endin |
| 25 |
</CsInstruments> |
| 26 |
<CsScore> |
| 27 |
i1 0 20 |
| 28 |
e |
| 29 |
</CsScore> |
| 30 |
</CsoundSynthesizer> |