Debian Codegraph @

examples/pvsvoc.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 pvsvoc.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; additions by Richard Boulanger
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 gisaw ftgen 1, 0, 2048, 10, 1, 0.5, 0.3, 0.25, 0.2 ;sawtooth-like
19
20 instr 1
21
22 asig diskin "fox.wav",1, 0, 1
23 ;asig inch 1 ;uncomment for live input signal
24 kfrq line 350,p3,50
25 asyn poscil .3, kfrq, gisaw ;excitation signal, dropping in frequency
26 famp pvsanal asig, 1024, 256, 1024, 1 ;analyse in signal
27 fexc pvsanal asyn, 1024, 256, 1024, 1 ;analyse excitation signal
28 ftps pvsvoc famp, fexc, 1, 1 ;cross it
29 atps pvsynth ftps ;synthesise it
30 outs atps, atps
31
32 endin
33 </CsInstruments>
34 <CsScore>
35 i 1 0 20
36 e
37 </CsScore>
38 </CsoundSynthesizer>