| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in No messages |
| 5 |
-odac -d ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o atone.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr= 44100 |
| 12 |
ksmps = 64 |
| 13 |
nchnls = 1 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
;by Victor Lazzarini 2008 |
| 17 |
|
| 18 |
instr 1 |
| 19 |
kscal active 1 |
| 20 |
kamp port 1/kscal, 0.01 |
| 21 |
asig oscili kamp, p4, 1 |
| 22 |
kenv linseg 0, 0.1,1,p3-0.2,1,0.1, 0 |
| 23 |
|
| 24 |
out asig*kenv |
| 25 |
endin |
| 26 |
|
| 27 |
</CsInstruments> |
| 28 |
<CsScore> |
| 29 |
f1 0 16384 10 1 |
| 30 |
|
| 31 |
i1 0 10 440 |
| 32 |
i1 1 3 220 |
| 33 |
i1 2 5 350 |
| 34 |
i1 4 3 700 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |