Debian Codegraph @

examples/harmon.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 harmon.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 aout diskin2 "sing.wav", 1
19
20 kestfrq = p4 ;different estimated frequency
21 kmaxvar = 0.1
22 imode = 1
23 iminfrq = 100
24 iprd = 0.02
25
26 asig harmon aout, kestfrq, kmaxvar, kestfrq*.5, kestfrq*4, \
27 imode, iminfrq, iprd
28 outs (asig + aout)*.6, (asig + aout)*.6 ;mix dry&wet signal
29
30 endin
31 </CsInstruments>
32 <CsScore>
33
34 i 1 0 2.7 100
35 i 1 + . 200
36 i 1 + . 500
37 e
38 </CsScore>
39 </CsoundSynthesizer>