| 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 max.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 |
k1 oscili 1, 10.0, 1 ;combine 3 sinusses |
| 19 |
k2 oscili 1, 1.0, 1 ;at different rates |
| 20 |
k3 oscili 1, 3.0, 1 |
| 21 |
kmax max k1, k2, k3 |
| 22 |
kmax = kmax*250 ;scale kmax |
| 23 |
printk2 kmax ;check the values |
| 24 |
|
| 25 |
aout vco2 .5, 220, 6 ;sawtooth |
| 26 |
asig moogvcf2 aout, 600+kmax, .5 ;change filter around 600 Hz |
| 27 |
outs asig, asig |
| 28 |
|
| 29 |
endin |
| 30 |
|
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
f1 0 32768 10 1 |
| 34 |
|
| 35 |
i1 0 5 |
| 36 |
e |
| 37 |
</CsScore> |
| 38 |
</CsoundSynthesizer> |