<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 pvadd.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1
; analyze "fox.wav" with PVANAL first
 igatefn = p4
 ktime line 0, p3, p3
asig pvadd	ktime, 1, "fox.pvoc", 1, 300, 2, 2, 0, 0, igatefn

  out asig*3
endin


</CsInstruments>
<CsScore>

; Table #1, an ordinary sine wave.
f 1 0 16384 10 1
f 2 0 512 5 1 256 .001
f 3 0 512 7 0 256 1 256 1

; Play Instrument #1 for three seconds.
i 1 0 2.8 2 
i 1 + 2.8 3
e


</CsScore>
</CsoundSynthesizer>
