Debian Codegraph @

examples/wguide1.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o wguide1.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Kevin Conder
12 ; additions by Menno Knevel 2021
13
14 sr = 44100
15 ksmps = 32
16 nchnls = 2
17 0dbfs = 1
18
19 instr 1 ; Generate some noise.
20
21 asig noise .5, 0.5
22 outs asig, asig
23
24 endin
25
26 instr 2
27
28 asig noise .5, 0.5 ; Generate some noise.
29 kfreq line p4, p3, 100 ; Run it through a wave-guide model.
30 kcutoff init 3000
31 kfeedback init 0.8
32 awg1 wguide1 asig, kfreq, kcutoff, kfeedback
33 outs awg1, awg1
34
35 endin
36
37 </CsInstruments>
38 <CsScore>
39 i 1 0 2
40 ; freq
41 i 2 2 5 2000 ; falling frequency
42 i 2 8 3 100 ; static
43 e
44 </CsScore>
45 </CsoundSynthesizer>