Debian Codegraph @

examples/apoleparams.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac -d
4 </CsOptions>
5 <CsInstruments>
6
7 sr = 44100
8 ksmps = 64
9 nchnls = 1
10 0dbfs = 1
11
12 gifw ftgen 0,0,1024,20,2,1
13
14 instr 1
15 kper init sr
16 a1 diskin "flute.aiff",1,0,1
17 kcfs[],krms,kerr,kcps lpcanal a1,1,512,1024,10,gifw
18 kpar[] apoleparams kcfs
19 if kper >= sr then
20 kcnt = 0
21 kper = 0
22 endif
23 kper += ksmps
24 while kcnt < 5 do
25 printf "t:%.1f filter %d freq: %.1f bw: %.1f\n", kcnt+1, times:k(), kcnt, kpar[kcnt], kpar[kcnt+1]
26 kcnt += 1
27 od
28 out a1
29 endin
30
31 </CsInstruments>
32 <CsScore>
33 i1 0 20
34 </CsScore>
35 </CsoundSynthesizer>
36