| 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 outch-2.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 4 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
seed 0 |
| 17 |
|
| 18 |
instr 1 ;random movements between 4 speakers with outch |
| 19 |
|
| 20 |
ichn1 random 1, 4.999 ;channel to start |
| 21 |
ichn2 random 1, 4.999 ;channel to end |
| 22 |
prints "Moving from speaker %d to speaker %d%n", int(ichn1), int(ichn2) |
| 23 |
asamp soundin "fox.wav" |
| 24 |
kmov linseg 0, p3, 1 |
| 25 |
a1, a2 pan2 asamp, kmov |
| 26 |
outch int(ichn1), a1, int(ichn2), a2 |
| 27 |
endin |
| 28 |
|
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
r 5 |
| 32 |
i 1 0 3 |
| 33 |
e |
| 34 |
</CsScore> |
| 35 |
</CsoundSynthesizer> |
| 36 |
|