| 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 lfo.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 |
kcps = 5 |
| 19 |
itype = p4 ;lfo type |
| 20 |
|
| 21 |
klfo line 0, p3, 20 |
| 22 |
al lfo klfo, kcps, itype |
| 23 |
asig poscil .5, 220+al, 1 |
| 24 |
outs asig, asig |
| 25 |
|
| 26 |
endin |
| 27 |
</CsInstruments> |
| 28 |
<CsScore> |
| 29 |
; sine wave. |
| 30 |
f 1 0 32768 10 1 |
| 31 |
|
| 32 |
i 1 0 3 0 ;lfo = sine |
| 33 |
i 1 + 3 2 ;lfo = square |
| 34 |
i 1 + 3 5 ;lfo = saw-tooth down |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |