| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o vlowres.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 |
|
| 17 |
instr 1 |
| 18 |
|
| 19 |
kamp init p4 |
| 20 |
asig vco2 kamp, 110 ;saw wave |
| 21 |
kfco line 30, p3, 300 ;vary the cutoff frequency from 30 to 300 Hz. |
| 22 |
kres = 20 |
| 23 |
ksep = p5 ;different resonance values |
| 24 |
iord = p6 ;and different number of filters |
| 25 |
aout vlowres asig, kfco, kres, iord, ksep |
| 26 |
aclp clip aout, 1, 1 ;avoid distortion |
| 27 |
outs aclp, aclp |
| 28 |
|
| 29 |
endin |
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
f 1 0 16384 10 1 ;sine |
| 33 |
|
| 34 |
s |
| 35 |
i 1 0 10 .1 5 2 ;compensate volume and |
| 36 |
i 1 + 10 .1 25 2 ;number of filters = 2 |
| 37 |
s |
| 38 |
i 1 0 10 .01 5 6 ;compensate volume and |
| 39 |
i 1 + 10 .04 15 6 ;number of filters = 6 |
| 40 |
|
| 41 |
e |
| 42 |
</CsScore> |
| 43 |
</CsoundSynthesizer> |
| 44 |
|