| 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 pvscfs.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 |
a1 diskin "fox.wav", 1 |
| 19 |
a2 diskin "wave.wav", 1, 0, 1 ; uses noisy wave |
| 20 |
fenv pvsanal a1, 1024, 256, 1024, 1 |
| 21 |
kcfs[],krms,kerr pvscfs fenv, p4 |
| 22 |
a3 allpole a2*krms*kerr, kcfs |
| 23 |
a3 dcblock a3 |
| 24 |
outs a3*8, a3*8 |
| 25 |
endin |
| 26 |
|
| 27 |
</CsInstruments> |
| 28 |
<CsScore> |
| 29 |
; order |
| 30 |
i1 0 2.7 3 |
| 31 |
i1 3 2.7 30 |
| 32 |
i1 6 2.7 70 |
| 33 |
</CsScore> |
| 34 |
</CsoundSynthesizer> |