| 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 gen10.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 |
kamp = .6 |
| 19 |
kcps = 440 |
| 20 |
ifn = p4 |
| 21 |
|
| 22 |
asig oscil kamp, kcps, ifn |
| 23 |
outs asig,asig |
| 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 |
f3 0 16384 10 1 0 0.3 0 0.2 0 0.14 0 .111 ; Square |
| 31 |
f4 0 16384 10 1 1 1 1 0.7 0.5 0.3 0.1 ; Pulse |
| 32 |
|
| 33 |
i 1 0 2 1 |
| 34 |
i 1 3 2 2 |
| 35 |
i 1 6 2 3 |
| 36 |
i 1 9 2 4 |
| 37 |
|
| 38 |
e |
| 39 |
</CsScore> |
| 40 |
</CsoundSynthesizer> |