Debian Codegraph @

examples/trfilter.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 trfilter.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 gifn ftgen 2, 0, -22050, 5, 1, 1000, 1, 4000, 0.000001, 17050, 0.000001 ; low-pass filter curve of 22050 points
17
18 instr 1
19
20 kam line 1, p3, p4
21 ain diskin2 "drumsMlp.wav", 1, 0, 1
22 fs1,fsi2 pvsifd ain, 2048, 512, 1 ; ifd analysis
23 fst partials fs1, fsi2, .003, 1, 3, 500 ; partial tracking
24 fscl trfilter fst, kam, gifn ; filtering using function table 2
25 aout tradsyn fscl, 1, 1, 500, 1 ; resynthesis
26 outs aout, aout
27
28 endin
29 </CsInstruments>
30 <CsScore>
31 f1 0 8192 10 1
32
33 i 1 0 4 1
34 i 1 5 4 0 ;reduce filter effect
35 e
36 </CsScore>
37 </CsoundSynthesizer>