| 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 outch.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 5 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
asig vco2 .05, 100 ; sawtooth waveform at low volume |
| 19 |
|
| 20 |
kcut line 100, p3, 30 ; Vary cutoff frequency |
| 21 |
kresonance = .7 |
| 22 |
inumlayer = 3 |
| 23 |
asig lowresx asig, kcut, kresonance, inumlayer |
| 24 |
|
| 25 |
klfo lfo 4, .5, 4 |
| 26 |
klfo = klfo+1 ; offset of 1 |
| 27 |
printks "signal is sent to channel %d\\n", .1, klfo |
| 28 |
outch klfo,asig |
| 29 |
|
| 30 |
endin |
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
|
| 34 |
i 1 0 30 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |