| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o integ.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 |
asig diskin2 "fox.wav", 1 |
| 19 |
outs asig, asig |
| 20 |
|
| 21 |
endin |
| 22 |
|
| 23 |
instr 2 ; with diff |
| 24 |
|
| 25 |
asig diskin2 "fox.wav", 1 |
| 26 |
ares diff asig |
| 27 |
outs ares, ares |
| 28 |
|
| 29 |
endin |
| 30 |
|
| 31 |
instr 3 ; with integ |
| 32 |
|
| 33 |
asig diskin2 "fox.wav", 1 |
| 34 |
aint integ asig |
| 35 |
aint = aint*.05 ;way too loud |
| 36 |
outs aint, aint |
| 37 |
|
| 38 |
endin |
| 39 |
|
| 40 |
instr 4 ; with diff and integ |
| 41 |
|
| 42 |
asig diskin2 "fox.wav", 1 |
| 43 |
ares diff asig |
| 44 |
aint integ ares |
| 45 |
outs aint, aint |
| 46 |
|
| 47 |
endin |
| 48 |
|
| 49 |
</CsInstruments> |
| 50 |
<CsScore> |
| 51 |
|
| 52 |
i 1 0 1 |
| 53 |
i 2 1 1 |
| 54 |
i 3 2 1 |
| 55 |
i 4 3 1 |
| 56 |
|
| 57 |
e |
| 58 |
|
| 59 |
</CsScore> |
| 60 |
</CsoundSynthesizer> |