Debian Codegraph @

examples/pvscale.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o pvscale.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 ;; example written by joachim heintz 2009
17
18 instr 1
19 ifftsize = 1024
20 ioverlap = ifftsize / 4
21 iwinsize = ifftsize
22 iwinshape = 1; von-Hann window
23 Sfile = "fox.wav"
24 ain soundin Sfile
25 fftin pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape; fft-analysis of the audio-signal
26 fftblur pvscale fftin, p4, p5, p6; scale
27 aout pvsynth fftblur; resynthesis
28 outs aout*.5, aout*.5
29 endin
30
31 </CsInstruments>
32 <CsScore>
33 i 1 0 3 1 0 1 ; original sound
34 i 1 3 3 1.5 0 2 ; fifth higher without ...
35 i 1 6 3 1.5 1 2 ; ... and with different ...
36 i 1 9 3 1.5 2 5 ; ... kinds of formant preservation
37 e
38 </CsScore>
39 </CsoundSynthesizer>