| 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 linrand.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 ; every run time same values |
| 17 |
|
| 18 |
klin linrand 100 |
| 19 |
printk .2, klin ; look |
| 20 |
aout oscili 0.8, 440+klin, 1 ; & listen |
| 21 |
outs aout, aout |
| 22 |
endin |
| 23 |
|
| 24 |
instr 2 ; every run time different values |
| 25 |
|
| 26 |
seed 0 |
| 27 |
klin linrand 100 |
| 28 |
printk .2, klin ; look |
| 29 |
aout oscili 0.8, 440+klin, 1 ; & listen |
| 30 |
outs aout, aout |
| 31 |
endin |
| 32 |
|
| 33 |
</CsInstruments> |
| 34 |
<CsScore> |
| 35 |
; sine wave |
| 36 |
f 1 0 16384 10 1 |
| 37 |
|
| 38 |
i 1 0 2 |
| 39 |
i 2 3 2 |
| 40 |
e |
| 41 |
</CsScore> |
| 42 |
</CsoundSynthesizer> |