<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
-odac           -iadc     -d     ;;;RT audio I/O
; 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
nchnls = 2

;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


</CsInstruments>
<CsScore>

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
e

</CsScore>
</CsoundSynthesizer>
