Debian Codegraph @

examples/resyn.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 resyn.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 ktracks = p4
19 ain diskin2 "fox.wav", 1, 0, 1
20 fs1,fsi2 pvsifd ain, 2048, 512, 1 ; pvsifd analysis
21 fst partials fs1, fsi2, .1, 1,3, 500 ; partial tracking
22 aout resyn fst, 1, 1.5, ktracks, 1 ; resynthesis (up a 5th)
23 outs aout, aout
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 ;sine
29 f1 0 4096 10 1
30
31 i 1 0 2.7 500
32 i 1 3 2.7 10 ;non-linear filtering effect
33
34 e
35 </CsScore>
36 </CsoundSynthesizer>