Debian Codegraph @

examples/pvswarp.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 pvswarp.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 kscal = p4
19 kshift = p5
20 asig soundin "fox.wav" ; get the signal in
21 fsig pvsanal asig, 1024, 256, 1024, 1 ; analyse it
22 ftps pvswarp fsig, kscal, kshift ; warp it
23 atps pvsynth ftps ; synthesise it
24 outs atps/2, atps/2
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 ;change scale
30 i 1 0 3 1
31 i 1 + . 1.5
32 i 1 + . 3
33 i 1 + . .25
34 ;change shift
35 i 1 + . 1 0
36 i 1 + . . 300
37 i 1 + . . 0
38 i 1 + . . -300
39 e
40 </CsScore>
41 </CsoundSynthesizer>