Debian Codegraph @

examples/exciter.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;real-time 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 exciter.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 ; by Menno Knevel 2023
17
18 instr 1 ; excited sound + original sound
19
20 a1 diskin2 "Mathews.wav", 1, 3.5
21 a2 exciter a1, 3000, 20000, 10, 10 ;generate uneven harmonics at maximum setting
22 outs a2+a1, a2+a1
23 endin
24
25 instr 2 ; original sound for comparison
26
27 a1 diskin2 "Mathews.wav", 1, 3.5
28 outs a1, a1
29 endin
30
31 instr 3 ; the effect of the excited sound only
32
33 a1 diskin2 "Mathews.wav", 1, 3.5
34 a2 exciter a1, 3000, 20000, 10, 10 ;generate uneven harmonics at maximum setting
35 outs a2, a2
36 endin
37
38 </CsInstruments>
39 <CsScore>
40 i1 0 5
41 i2 5 5
42 i3 10 4.5
43 e
44 </CsScore>
45 </CsoundSynthesizer>