Debian Codegraph @

examples/vbap8move.csd

raw
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 vbap4move.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 48000
12 ksmps = 10
13 nchnls = 8
14
15 ;Example by Hector Centeno 2007
16
17 vbaplsinit 2, 8, 15, 65, 115, 165, 195, 245, 295, 345
18
19 instr 1
20 ifldnum = 9
21 ispread = 30
22 idur = p3
23
24 ;; Generate a sound source
25 kenv loopseg 10, 0, 0, 0, 0.5, 1, 10, 0
26 a1 pinkish 3000*kenv
27
28 ;; Move circling around once all the speakers
29 aout1, aout2, aout3, aout4, aout5, aout6, aout7, aout8 vbap8move a1, idur, ispread, ifldnum, 15, 65, 115, 165, 195, 245, 295, 345, 15
30
31 ;; Speaker mapping
32 aFL = aout8 ; Front Left
33 aFR = aout1 ; Front Right
34 aMFL = aout7 ; Mid Front Left
35 aMFR = aout2 ; Mid Front Right
36 aMBL = aout6 ; Mid Back Left
37 aMBR = aout3 ; Mid Back Right
38 aBL = aout5 ; Back Left
39 aBR = aout4 ; Back Right
40
41 outo aFL, aFR, aMFL, aMFR, aMBL, aMBR, aBL, aBR
42
43 endin
44
45 </CsInstruments>
46 <CsScore>
47 i1 0 30
48 e
49 </CsScore>
50 </CsoundSynthesizer>