| 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 out.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 1 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
kamp = .6 |
| 19 |
kcps = 440 |
| 20 |
ifn = p4 |
| 21 |
|
| 22 |
asig oscil kamp, kcps, ifn |
| 23 |
out asig ;one channel |
| 24 |
|
| 25 |
endin |
| 26 |
</CsInstruments> |
| 27 |
<CsScore> |
| 28 |
f1 0 16384 10 1 ; Sine |
| 29 |
f2 0 16384 10 1 0.5 0.3 0.25 0.2 0.167 0.14 0.125 .111 ; Sawtooth |
| 30 |
|
| 31 |
i 1 0 2 1 |
| 32 |
i 1 3 2 2 |
| 33 |
|
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |