Debian Codegraph @

examples/eqfil.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 eqfil.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
18 kcf = p4
19 kfe expseg 10, p3*0.9, 1800, p3*0.1, 175
20 kenv linen .03, 0.05, p3, 0.05 ;low amplitude is needed to avoid clipping
21 asig buzz kenv, kfe, sr/(2*kfe), 1
22 afil eqfil asig, kcf, 200, 10
23 outs afil*20, afil*20
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 ; a sine wave.
29 f 1 0 16384 10 1
30
31 i 1 0 10 200 ;filter centre freq=200
32 i 1 + 10 1500 ;filter centre freq=1500
33 e
34 </CsScore>
35 </CsoundSynthesizer>