| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-odac ;;;RT audio out |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o pvsceps.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 |
a1 diskin "fox.wav",1,0,1 |
| 19 |
k1 randh 80, 2.5 |
| 20 |
a2 vco2 8, 220+k1 |
| 21 |
fsig pvsanal a1,1024,256,1024,1 |
| 22 |
fsig2 pvsanal a2,1024,256,1024,1 |
| 23 |
keps[] pvsceps fsig, p4 |
| 24 |
kenv[] cepsinv keps |
| 25 |
fenv tab2pvs r2c(kenv) |
| 26 |
fvoc pvsfilter fsig2, fenv, 1 |
| 27 |
asig pvsynth fvoc |
| 28 |
outs asig, asig |
| 29 |
endin |
| 30 |
|
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
i1 0 30 30 ; p4 -= the number of retained coefficients |
| 34 |
i1 31 10 5 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |