Debian Codegraph @

examples/reverb.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 reverb.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 ga1 init 0
17
18 instr 1
19
20 asig poscil .2, cpspch(p4), 1
21 outs asig, asig
22
23 ga1 += asig ;add direct signal to global reverb
24
25 endin
26
27 instr 99 ;(highest instr number executed last)
28
29 arev reverb ga1, 1.5
30 outs arev, arev
31
32 ga1 = 0 ;clear
33 endin
34
35
36 </CsInstruments>
37 <CsScore>
38 f 1 0 128 10 1 ;sine
39
40 i 1 0 0.1 7.00 ;short sounds
41 i 1 1 0.1 8.02
42 i 1 2 0.1 8.04
43 i 1 3 0.1 8.06
44
45 i 99 0 6 ;reverb runs for 6 seconds
46 e
47 </CsScore>
48 </CsoundSynthesizer>