Csound Csound-dev Csound-tekno Search About

[Csnd] extra feedback

Date2009-07-06 22:39
FromCharles Gran
Subject[Csnd] extra feedback
Hi,

This is based on
http://www.nabble.com/making-a-delay-with-feedback-to24166761.html
with the comment "On a quick glance, my impression is that  the code
below adds 1 extra k-period to the feedback path (but I might be wrong
on this)."

When I turn the dial for kfeedback, I usually get one more echo.  How
do I fix this?

; Continuous delay with reverb


-odac4 -iadc4 -b100 -B512 -M2



sr = 44100
ksmps = 10
nchnls = 1
0dbfs = 1

initc7 8,10,.5  ;kfeedback

instr 1

  imaxdelay = 4
  kdelay = 1  ;seconds
  ;kfeedback = .5  ;0=none, 1=constant
  kfeedback ctrl7 8,10,0,1

 asignal in

  afeedbacksig init 0
  abufout delayr imaxdelay
  atap deltap3 kdelay
  delayw asignal + atap*kfeedback

 out asignal+atap

endin




i1 0 3600
e