| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-odac -iadc ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o ftsave.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
; Initialize the global variables. |
| 12 |
sr = 44100 |
| 13 |
ksmps = 32 |
| 14 |
nchnls = 2 |
| 15 |
0dbfs = 1 |
| 16 |
|
| 17 |
giSine ftgen 0, 0, 2^10, 10, 1 |
| 18 |
|
| 19 |
instr 1 |
| 20 |
ktrig init 1 |
| 21 |
asig poscil3 .5, 880, giSine |
| 22 |
kans ftaudio ktrig, 100, "k_ftaudio.wav", 15, 1 |
| 23 |
ktrig = 0 |
| 24 |
outs asig, asig |
| 25 |
endin |
| 26 |
|
| 27 |
instr 2 |
| 28 |
ians ftaudio 100, "i_ftaudio.wav", 15, p4, p5 |
| 29 |
turnoff |
| 30 |
endin |
| 31 |
|
| 32 |
</CsInstruments> |
| 33 |
<CsScore> |
| 34 |
f100 0 0 -1 "drumsMlp.wav" 0 0 0 |
| 35 |
i 1 0 2 |
| 36 |
i 2 0 1 11025 33075; 0.5 seconds cut |
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |