Debian Codegraph @

examples/bqrez.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o bqrez.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 ;sawtooth waveform.
17
18 kfco line 200, p3, 2000;filter-cutoff frequency from .2 to 5 KHz.
19 kres = p4 ;resonance
20 imode = p5 ;mode
21 asig vco 0.2, 220, 1
22 afilt bqrez asig, kfco, kres, imode
23 asig balance afilt, asig
24 outs asig, asig
25
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 ;sine wave
31 f 1 0 16384 10 1
32
33 i 1 0 3 1 0 ; low pass
34 i 1 + 3 30 0 ; low pass
35 i 1 + 3 1 1 ; high pass
36 i 1 + 3 30 1 ; high pass
37
38 e
39
40 </CsScore>
41 </CsoundSynthesizer>