| 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 gen11.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 |
ifn = p4 |
| 19 |
asig oscil .8, 220, ifn |
| 20 |
outs asig,asig |
| 21 |
|
| 22 |
endin |
| 23 |
</CsInstruments> |
| 24 |
<CsScore> |
| 25 |
f 1 0 16384 11 1 1 ;number of harmonics = 1 |
| 26 |
f 2 0 16384 11 10 1 .7 ;number of harmonics = 10 |
| 27 |
f 3 0 16384 11 10 5 2 ;number of harmonics = 10, 5th harmonic is amplified 2 times |
| 28 |
|
| 29 |
|
| 30 |
i 1 0 2 1 |
| 31 |
i 1 + 2 2 |
| 32 |
i 1 + 2 3 |
| 33 |
e |
| 34 |
</CsScore> |
| 35 |
</CsoundSynthesizer> |