| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-odac -d |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
|
| 7 |
0dbfs = 1 |
| 8 |
|
| 9 |
// three different inputs |
| 10 |
instr 1 |
| 11 |
alp = diskin:a("fox.wav",1,0,1)/3 |
| 12 |
ahp rand p4/3 |
| 13 |
abp vco2 p4,100 |
| 14 |
af expon 100,p3,10000 |
| 15 |
a3 spf alp,ahp,abp,af,0.707 |
| 16 |
out a3 |
| 17 |
a1 = 0 |
| 18 |
endin |
| 19 |
|
| 20 |
// band-reject |
| 21 |
instr 2 |
| 22 |
a0 init 0 |
| 23 |
anoi rand p4 |
| 24 |
af expon 100,p3,10000 |
| 25 |
as spf anoi,anoi,a0,af,0.3 |
| 26 |
out as |
| 27 |
endin |
| 28 |
|
| 29 |
// self-oscillation |
| 30 |
instr 3 |
| 31 |
a0 init 0 |
| 32 |
anoi rand p4 |
| 33 |
af expon 100,p3,10000 |
| 34 |
as spf anoi,a0,a0,af,0 |
| 35 |
out as |
| 36 |
endin |
| 37 |
|
| 38 |
</CsInstruments> |
| 39 |
<CsScore> |
| 40 |
i1 0 10 0.2 |
| 41 |
i2 10 10 0.5 |
| 42 |
i3 20 10 0.004 |
| 43 |
</CsScore> |
| 44 |
</CsoundSynthesizer> |