Debian Codegraph @

examples/pvsftw.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 pvsftw.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 ; analyze sound file, creating a PVOC-EX file
17 ires1 system_i 1,{{ pvanal fox.wav fox.pvx }} ; default settings
18
19 instr 1
20
21 inbins = 512
22 ifn ftgen 0,0,inbins,10,1 ; make ftable
23 fsrc pvsdiskin "fox.pvx", 1, 1 ; read PVOCEX file
24 kflag pvsftw fsrc,ifn ; export amps to table,
25 kamp init 0
26 if kflag==0 kgoto contin ; only proc when frame is ready
27 tablew kamp,1,ifn ; kill lowest bins, for obvious effect
28 tablew kamp,2,ifn
29 tablew kamp,3,ifn
30 tablew kamp,4,ifn
31 ; read modified data back to fsrc
32 pvsftr fsrc,ifn
33 contin:
34 ; and resynth
35 aout pvsynth fsrc
36 outs aout, aout
37
38 endin
39
40 </CsInstruments>
41 <CsScore>
42 i 1 0 5.5
43 e
44 </CsScore>
45 </CsoundSynthesizer>