| 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 vbaplsinit.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 8 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
vbaplsinit 2, 8, 0, 45, 90, 180, 270, 0, 0, 0 ;5 speakers for 5.1 amps |
| 17 |
|
| 18 |
instr 1 |
| 19 |
|
| 20 |
asig diskin2 "drumsMlp.wav", 1, 0, 1 ;loop drumsMlp.wav |
| 21 |
kazim line 1, p3, 355 |
| 22 |
a1,a2,a3,a4,a5,a6,a7,a8 vbap8 asig, kazim, 0, 1 ;change azimuth of soundsource |
| 23 |
; Speaker mapping |
| 24 |
aFL = a1 ; Front Left |
| 25 |
aMF = a5 ; Mid Front |
| 26 |
aFR = a2 ; Front Right |
| 27 |
aBL = a3 ; Back Left |
| 28 |
aBR = a4 ; Back Right |
| 29 |
outo aFL,aFR,aBL,aBR,aMF,a6,a7,a8 ;a6, a7 and a8 are dummies |
| 30 |
|
| 31 |
endin |
| 32 |
</CsInstruments> |
| 33 |
<CsScore> |
| 34 |
|
| 35 |
i 1 0 5 |
| 36 |
|
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |