Debian Codegraph @

examples/reverbsc.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o reverbsc.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10 sr = 48000
11 ksmps = 32
12 nchnls = 2
13 0dbfs = 1
14
15 instr 1
16 a1 vco2 0.85, 440, 10
17 kfrq port 100, 0.004, 20000
18 a1 butterlp a1, kfrq
19 a2 linseg 0, 0.003, 1, 0.01, 0.7, 0.005, 0, 1, 0
20 a1 = a1 * a2
21 a2 = a1 * p5
22 a1 = a1 * p4
23 denorm a1, a2
24 aL, aR reverbsc a1, a2, 0.85, 12000, sr, 0.5, 1
25 outs a1 + aL, a2 + aR
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 i 1 0 1 0.71 0.71
31 i 1 1 1 0 1
32 i 1 2 1 -0.71 0.71
33 i 1 3 1 1 0
34 i 1 4 4 0.71 0.71
35 e
36 </CsScore>
37 </CsoundSynthesizer>