Debian Codegraph @

examples/pvsdiskin.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 pvsdiskin.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 ; by Menno Knevel 2021
17
18 ; analyze sound file and output result to pvoc-ex file
19 ires system_i 1,{{ pvanal fox.wav fox.pvx }} ; default settings
20
21 instr 1
22
23 ktscale line 1, p3, .05 ;change speed
24 fsigr pvsdiskin "fox.pvx", ktscale, 1 ;read PVOCEX file
25 aout pvsynth fsigr ;resynthesise it
26 outs aout, aout
27
28 endin
29 </CsInstruments>
30 <CsScore>
31
32 i1 0 10.7 ; the fox jumps twice
33 e
34 </CsScore>
35 </CsoundSynthesizer>