Debian Codegraph @

examples/pvsbin.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 pvsbin.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Richard Boulanger & Menno Knevel
12
13 sr = 44100
14 ksmps = 1
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 ifftsize = 1024
21 iwtype = 1
22 a1 diskin2 "fox.wav", 1
23 ; to reduce artifacts, try a smaller hopsize, like ifftsize/8
24 ; also using port on frequency and/or amplitude may smooth it if there spikes
25 fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype
26 kamp, kfr pvsbin fsig, p4
27
28 adm poscil3 kamp*4, kfr
29 outs adm, adm
30
31 endin
32
33 </CsInstruments>
34 <CsScore>
35 ; bin
36 i 1 0 2.7 15
37 i 1 3 . 35
38 i 1 6 . 65
39 i 1 9 . 95
40
41 i 1 13 2.7 15 ; chord
42 i 1 13 . 35
43 i 1 13 . 65
44 i 1 13 . 95
45 e
46 </CsScore>
47 </CsoundSynthesizer>