| 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 |
|
| 18 |
kfrq0 oscil 8, 0.25, 1 |
| 19 |
ktrig metro 1 |
| 20 |
kfrq samphold kfrq0+8, ktrig |
| 21 |
seed 20120125 |
| 22 |
aimp gausstrig 0.5, kfrq, 0.5, 1 |
| 23 |
aenv filter2 aimp, 1, 1, 0.993, 0.993 |
| 24 |
anoi fractalnoise 0.2, 1.7 |
| 25 |
al = anoi*aenv |
| 26 |
ar delay al, 0.02 |
| 27 |
outs al, ar |
| 28 |
|
| 29 |
endin |
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
f1 0 8192 10 1 |
| 33 |
i1 0 16 |
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |