Debian Codegraph @

examples/trcross.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 trcross.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 ain1 diskin2 "drumsMlp.wav", 1, 0, 1
19 ain2 diskin2 "fox.wav", 1
20
21 imode = p4
22 fs1,fsi2 pvsifd ain1, 2048, 512, 1 ; ifd analysis
23 fst partials fs1, fsi2, .01, 1, 3, 500 ; partial tracking
24
25 fs11,fsi12 pvsifd ain2, 2048, 512, 1 ; ifd analysis (second input)
26 fst1 partials fs11, fsi12, .01, 1, 3, 500 ; partial tracking (second input
27
28 fcr trcross fst, fst1, 1.05, 1, imode ; cross-synthesis (mode 0 and mode 1)
29 aout tradsyn fcr, 1, 1, 500, 1 ; resynthesis of tracks
30 outs aout*3, aout*3
31
32 endin
33 </CsInstruments>
34 <CsScore>
35 f1 0 8192 10 1
36
37 i 1 0 3 0
38 i 1 5 3 1
39
40 e
41 </CsScore>
42 </CsoundSynthesizer>