| 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 wguide2.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 |
aout diskin2 "drumsMlp.wav", 1, 0, 1 ;in signal |
| 19 |
afreq1 line 100, p3, 2000 |
| 20 |
afreq2 line 1200, p3, p4 ;vary second frequency in the score |
| 21 |
kcutoff1 = 3000 |
| 22 |
kcutoff2 = 1500 |
| 23 |
kfeedback1 = 0.25 ;the sum of the two feedback |
| 24 |
kfeedback2 = 0.25 ;values should not exceed 0.5 |
| 25 |
asig wguide2 aout, afreq1, afreq2, kcutoff1, kcutoff2, kfeedback1, kfeedback2 |
| 26 |
asig dcblock2 asig ;get rid of DC |
| 27 |
outs asig, asig |
| 28 |
|
| 29 |
endin |
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
i 1 0 8 1200 ;freqency of afreq2 remains the same |
| 33 |
i 1 9 8 100 ;freqency of afreq2 gets lower |
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |
| 37 |
|