Debian Codegraph @

examples/outleta.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 outleta.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 connect "1", "Outl", "reverby", "InL"
17 connect "1", "Outr", "reverby", "InR"
18
19 alwayson "reverby", 1
20
21 instr 1
22
23 aIn diskin2 "fox.wav", 1
24 outleta "Outl", aIn
25 outleta "Outr", aIn
26
27 endin
28
29 instr reverby
30
31 aInL inleta "InL"
32 aInR inleta "InR"
33
34 al, ar reverbsc aInL, aInR, 0.7, 21000
35 ifxlev = 0.5
36 al = (aInL*ifxlev)+(al*(1-ifxlev))
37 ar = (aInR*ifxlev)+(ar*(1-ifxlev))
38 outs al, ar
39
40 endin
41 </CsInstruments>
42 <CsScore>
43
44 i 1 0 3
45 e4
46 </CsScore>
47 </CsoundSynthesizer>