| 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 outs.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 |
asig vco2 .01, 110 ; sawtooth waveform at low volume |
| 19 |
;filter a channel |
| 20 |
kcut1 line 60, p3, 300 ; Vary cutoff frequency |
| 21 |
kresonance1 = 3 |
| 22 |
inumlayer1 = 3 |
| 23 |
asig1 lowresx asig, kcut1, kresonance1, inumlayer1 |
| 24 |
;filter the other channel |
| 25 |
kcut2 line 300, p3, 60 ; Vary cutoff frequency |
| 26 |
kresonance2 = 3 |
| 27 |
inumlayer2 = 3 |
| 28 |
asig2 lowresx asig, kcut2, kresonance2, inumlayer2 |
| 29 |
|
| 30 |
outs asig1, asig2 ; output both channels 1 & 2 |
| 31 |
|
| 32 |
endin |
| 33 |
</CsInstruments> |
| 34 |
<CsScore> |
| 35 |
|
| 36 |
i 1 0 3 |
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |