Debian Codegraph @

examples/reson.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 reson.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 instr 1
17
18 asaw vco2 .2, 220 ;sawtooth
19 kcf line 220, p3, 1760 ;vary cut-off frequency from 220 to 1280 Hz
20 kbw = p4 ;vary bandwidth of filter too
21 ares reson asaw, kcf, kbw
22 asig balance ares, asaw
23 outs asig, asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28
29 i 1 0 4 10 ;bandwidth of filter = 10 Hz
30 i 1 + 4 50 ;50 Hz and
31 i 1 + 4 200 ;200 Hz
32 e
33 </CsScore>
34 </CsoundSynthesizer>