summaryrefslogtreecommitdiff
path: root/examples/pvsanal.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pvsanal.csd')
-rw-r--r--[-rwxr-xr-x]examples/pvsanal.csd45
1 files changed, 25 insertions, 20 deletions
diff --git a/examples/pvsanal.csd b/examples/pvsanal.csd
index 87b23f0..e1e07cf 100755..100644
--- a/examples/pvsanal.csd
+++ b/examples/pvsanal.csd
@@ -1,39 +1,44 @@
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-; Audio out Audio in No messages MIDI in
--odac -iadc -d ;;;RT audio I/O with MIDI in
+-odac ;;;realtime audio out
+;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o pvsanal.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 44100
-ksmps = 16
-nchnls = 1
+ksmps = 32
+nchnls = 2
0dbfs = 1
-;; example written by joachim heintz 2009
+instr 1 ;pvsanal has no influence when there is no transformation of original sound
-instr 1
-ifftsize = 1024
-ioverlap = ifftsize / 4
-iwinsize = ifftsize
-iwinshape = 1; von-Hann window
-Sfile = "fox.wav"
-ain soundin Sfile
-fftin pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape; fft-analysis of the audio-signal
-fftblur pvscale fftin, p4, p5, p6; scale
-aout pvsynth fftblur; resynthesis
- out aout
+ifftsize = p4
+ioverlap = ifftsize / 4
+iwinsize = ifftsize
+iwinshape = 1 ;von-Hann window
+Sfile = "fox.wav"
+ain soundin Sfile
+fftin pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape ;fft-analysis of the audio-signal
+fftblur pvscale fftin, p5 ;scale
+aout pvsynth fftblur ;resynthesis
+ outs aout, aout
endin
</CsInstruments>
<CsScore>
-i 1 0 3 1 0 1; original sound
-i 1 3 3 1.5 0 2; fifth higher without ...
-i 1 6 3 1.5 1 2; ... and with different ...
-i 1 9 3 1.5 2 5; ... kinds of formant preservation
+s
+i 1 0 3 512 1 ;original sound - ifftsize of pvsanal does not have any influence
+i 1 3 3 1024 1 ;even with different
+i 1 6 3 2048 1 ;settings
+
+s
+i 1 0 3 512 1.5 ;but transformation - here a fifth higher
+i 1 3 3 1024 1.5 ;but with different settings
+i 1 6 3 2048 1.5 ;for ifftsize of pvsanal
+
e
</CsScore>
</CsoundSynthesizer>