Debian Codegraph @

examples/resonx.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 resonx.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 ; unfiltered noise
17
18 kenv linseg 0, p3*.5, 1, p3*.5, 0 ;envelope
19 asig rand 0.7 ;white noise
20 outs asig*kenv, asig*kenv
21
22 endin
23
24 instr 2 ; filtered noise
25
26 kenv linseg 0, p3*.5, 1, p3*.5, 0 ;envelope
27 asig rand 0.7
28 kcf line 300, p3, 2000
29 afilt resonx asig, kcf, 300, 4
30 asig balance afilt, asig
31 outs asig*kenv, asig*kenv
32
33 endin
34 </CsInstruments>
35 <CsScore>
36
37 i 1 0 2
38 i 2 3 2
39
40 e
41 </CsScore>
42 </CsoundSynthesizer>