<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 pvread.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

ktime	line	0, p3, 2.8
kfreq, kamp	pvread ktime, "fox.pvoc", 7	; read data from 7th analysis bin.
asig	oscili	kamp, kfreq, 1 			; function 1 is a stored sine

  out asig*8
endin


</CsInstruments>
<CsScore>
;sine
f1 0 4096 10 1

i 1 0 6
e


</CsScore>
</CsoundSynthesizer>
