Debian Codegraph @

examples/pvstanal.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 pvstanal.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 gifil ftgen 0, 0, 0, 1, "fox.wav", 0, 0, 1
17
18 instr 1
19
20 fsig pvstanal p4, 1, p5, gifil, p6, p7
21 aout pvsynth fsig
22 outs aout, aout
23 endin
24
25 instr 2
26
27 kspeed randi 2, 2, 2 ;speed randomly between -2 and 2
28 kpitch randi 2, 2, 2 ;pitch between 2 octaves lower or higher
29 fsig pvstanal kspeed, 1, octave(kpitch), gifil
30 aout pvsynth fsig
31 outs aout, aout
32 endin
33
34 </CsInstruments>
35 <CsScore>
36 ; speed pch det wrap
37 i 1 0 2.757 1 1 0 0
38 i 1 3 . 2 1 0 0
39 i 1 6 . 2 1 0 1
40 i 1 9 . 1 .75
41 i 2 12 10 ;random scratching
42 e
43 </CsScore>
44 </CsoundSynthesizer>