Debian Codegraph @

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

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 --env:SSDIR+=../../SourceMaterials
5 </CsOptions>
6 <CsInstruments>
7 sr = 44100
8 ksmps = 32
9 0dbfs = 1
10 nchnls = 8 ;only channels 1-7 used
11
12 vbaplsinit 2, 7, -40, 40, 70, 140, 180, -110, -70
13
14 instr 1
15 Sfile = "ClassGuit.wav"
16 p3 filelen Sfile
17 aSnd[] diskin Sfile
18 kAzim line 0, p3, -360 ;counterclockwise
19 kSpread linseg 0, p3/2, 100, p3/2, 0
20 aVbap[] vbap aSnd[0], kAzim, 0, kSpread
21 out aVbap
22 endin
23 </CsInstruments>
24 <CsScore>
25 i 1 0 1
26 </CsScore>
27 </CsoundSynthesizer>
28 ;example by joachim heintz