<CsoundSynthesizer>
<CsOptions>
-n ;no sound
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 8820 ;5 steps per second

instr PrintVals
 ;initial values
 kstep init 0
 k0 init 0
 k1 init 0.5
 kc init 0.4
 ;calculation of the next value
 k2 = k1 + (k1 - k0) - kc * k1
 printks "Sample=%d: k0 = %.3f, k1 = %.3f, k2 = %.3f\n", 0, kstep, k0, k1, k2
 ;actualize values for the next step
 kstep = kstep+1
 k0 = k1
 k1 = k2
endin

</CsInstruments>
<CsScore>
i "PrintVals" 0 10
</CsScore>
</CsoundSynthesizer>
;example by joachim heintz
