Debian Codegraph @

examples/binit.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT 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 binit.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14
15 instr 1
16 ;ain inch 1 ; for live input
17 ain diskin "drumsMlp.wav", 1 ; input signal
18 fs1,fsi2 pvsifd ain, 2048, 512, 1 ; ifd analysis
19 fst partials fs1, fsi2, .003, 1, 3, 500 ; partial tracking
20 fbins binit fst, 2048 ; convert it back to bins
21 aout pvsynth fbins ; overlap-add resynthesis
22 outs aout, aout
23
24 endin
25
26 </CsInstruments>
27 <CsScore>
28
29 i 1 0 2
30 e
31
32
33 </CsScore>
34 </CsoundSynthesizer>