summaryrefslogtreecommitdiff
path: root/examples/vpvoc.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vpvoc.csd')
-rw-r--r--examples/vpvoc.csd36
1 files changed, 15 insertions, 21 deletions
diff --git a/examples/vpvoc.csd b/examples/vpvoc.csd
index 2dfa934..e7c375a 100644
--- a/examples/vpvoc.csd
+++ b/examples/vpvoc.csd
@@ -1,39 +1,33 @@
<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 vpvoc.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
-; Initialize the global variables.
sr = 44100
-kr = 4410
-ksmps = 10
+ksmps = 32
nchnls = 2
+0dbfs = 1
-;analyze "fox.wav" with pvanal first
instr 1
-
-ktime line 0, p3,3 ; time pointer, in seconds, into file
- tablexseg 3, p3*.5, 1, p3*.5, 2
-apv vpvoc ktime,1, "fox.pvx"
-apv = apv*1
-outs apv, apv
-endin
-
-
+; analyze "fox.wav" with PVANAL first
+iend = p4
+ktime line 0, p3, iend
+ tablexseg p5, p3, p6 ;morph from table 1
+asig vpvoc ktime, 1, "fox.pvx" ;to table 2
+ outs asig*3, asig*3
+
+endin
</CsInstruments>
<CsScore>
+f 1 0 512 9 .5 1 0
+f 2 0 512 5 1 60 0.01 390 0.01 62 1
-f 1 0 256 5 .001 128 1 128 .001
-f 2 0 256 5 1 128 .001 128 1
-f 3 0 256 7 1 256 1
-
-i1 0 10
+i 1 0 5 2.7 1 2
e
-
</CsScore>
</CsoundSynthesizer>