summaryrefslogtreecommitdiff
path: root/examples/pvoc.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pvoc.csd')
-rw-r--r--[-rwxr-xr-x]examples/pvoc.csd30
1 files changed, 13 insertions, 17 deletions
diff --git a/examples/pvoc.csd b/examples/pvoc.csd
index bcbac01..cd53e66 100755..100644
--- a/examples/pvoc.csd
+++ b/examples/pvoc.csd
@@ -1,36 +1,32 @@
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-; Audio out Audio in No messages
--odac -iadc -d ;;;RT audio I/O
+-odac ;;;realtime audio out
+;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o pvoc.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
-; Initialize the global variables.
-sr = 44100
-kr = 4410
-ksmps = 10
-nchnls = 1
+sr = 44100
+ksmps = 32
+0dbfs = 1
+nchnls = 2
-; Instrument #1.
instr 1
; analyze "fox.wav" with PVANAL first
+ispec = p4
+ktime line 0, p3, 1.55
+kfrq line .8, p3, 2
+asig pvoc ktime, kfrq, "fox.pvx", ispec
+ outs asig, asig
-ktime line 0, p3, 1.6
-asig pvoc ktime, 1, "fox.pvoc", 1
-
- out asig
endin
-
-
</CsInstruments>
<CsScore>
-i 1 0 6
+i 1 0 6 0
+i 1 + 6 1 ;preserve spectral envelope
e
-
-
</CsScore>
</CsoundSynthesizer>