Debian Codegraph @

examples/pvsdemix.csd

raw
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 pvsdemix.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1
17 ifftsize = 2048
18 iwtype = 1
19 kpos = p4
20
21 asig1 diskin2 "fox.wav",1,0,1
22 asig2 diskin2 "drumsMlp.wav",1,0,1
23 aL, aR pan2 asig1,0.25
24 aL1, aR1 pan2 asig2,0.75
25
26 if p5 == 0 then
27 outs aL1+aL, aR1+aR
28 else
29 flc pvsanal aL1+aL, ifftsize, ifftsize/4, ifftsize, iwtype
30 frc pvsanal aR1+aR, ifftsize, ifftsize/4, ifftsize, iwtype
31 fdm pvsdemix flc, frc,kpos,20,100
32 adm pvsynth fdm
33 adm *= 0.5
34 outs adm, adm
35 endif
36
37 endin
38
39 </CsInstruments>
40 <CsScore>
41
42 ; pan choice
43 i 1 0 5 0 0 ; bypass
44 i 1 5 5 -0.5 1 ; fox
45 i 1 10 5 0.5 1 ; beats
46
47 e
48 </CsScore>
49 </CsoundSynthesizer>