| 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 outq.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 4 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
asig vco2 .01, 110 ; sawtooth waveform at low volume |
| 19 |
|
| 20 |
;filter the first channel |
| 21 |
kcut1 line 60, p3, 300 ; Vary cutoff frequency |
| 22 |
kresonance1 = 3 |
| 23 |
inumlayer1 = 3 |
| 24 |
asig1 lowresx asig, kcut1, kresonance1, inumlayer1 |
| 25 |
|
| 26 |
;filter the second channel |
| 27 |
kcut2 line 300, p3, 60 ; Vary cutoff frequency |
| 28 |
kresonance2 = 3 |
| 29 |
inumlayer2 = 3 |
| 30 |
asig2 lowresx asig, kcut2, kresonance2, inumlayer2 |
| 31 |
|
| 32 |
;filter the third channel |
| 33 |
kcut3 line 30, p3, 100; Vary cutoff frequency |
| 34 |
kresonance3 = 6 |
| 35 |
inumlayer3 = 3 |
| 36 |
asig3 lowresx asig, kcut3, kresonance3, inumlayer3 |
| 37 |
asig3 = asig3*.1 ; lower volume |
| 38 |
|
| 39 |
;filter the fourth channel |
| 40 |
kcut4 line 100, p3, 30; Vary cutoff frequency |
| 41 |
kresonance4 = 6 |
| 42 |
inumlayer4 = 3 |
| 43 |
asig4 lowresx asig, kcut4, kresonance4, inumlayer4 |
| 44 |
asig4 = asig4*.1 ; lower volume |
| 45 |
|
| 46 |
outq asig1, asig2, asig3, asig4; output channels 1, 2, 3 & 4 |
| 47 |
|
| 48 |
endin |
| 49 |
</CsInstruments> |
| 50 |
<CsScore> |
| 51 |
|
| 52 |
i 1 0 5 |
| 53 |
e |
| 54 |
</CsScore> |
| 55 |
</CsoundSynthesizer> |