Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05B18_udo_ambisonics_4.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 --env:SSDIR+=../../SourceMaterials -odac -m0
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 8
9 0dbfs = 1
10
11 zakinit 16, 1
12
13 #include "../../SourceMaterials/ambisonics_udos.txt"
14 #include "../../SourceMaterials/ambisonics_utilities.txt"
15
16 instr 1
17 asnd buzz p4,p5,p6,1
18 kt line 0,p3,p3
19 kaz,kel,kdist xyz_to_aed 10*sin(kt),10*sin(.78*kt),10*sin(.43*kt)
20 adop Doppler asnd,kdist
21 ambi_enc_dist adop,3,kaz,kel,kdist
22 a1,a2,a3,a4,a5,a6,a7,a8 ambi_decode 3,17
23 ;k0 ambi_write_B "B_form.wav",8,14
24 outc a1,a2,a3,a4,a5,a6,a7,a8
25 zacl 0,15
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 f1 0 32768 10 1
31 f17 0 64 -2 0 -45 35.2644 45 35.2644 135 35.2644 225 35.2644 \
32 -45 -35.2644 .7854 -35.2644 135 -35.2644 225 -35.2644
33 i1 0 40 .5 300 40
34 </CsScore>
35 </CsoundSynthesizer>
36 ;example by martin neukom