« Return to Thread: making a delay with feedback

Re: RE: making a delay with feedback

by Victor Lazzarini :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
I think it's probably best to do this:


abufout  delayr    imaxdelay
atap      deltap3    kdelay

delayw    asignal + atap*kfeedback

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

Also, as a rule of thumb, setting ksmps=1 should be
a good thing too, in case you want to go down to 1-sample
and/or use variable delays (to have a fine degree of variability too).
Using an audio signal for delaytime also smooths things
in variable delays. You can place it in a UDO so that you
don't need to inflict the high kr on the whole of your orchestra.

Victor

----- Original Message -----
From: Iain McCurdy <i_mccurdy@...>
Date: Tuesday, June 23, 2009 4:13 pm
Subject: [Csnd] RE: making a delay with feedback
To: csound@...

>


>
>
>
>


> Hi Atte,
>
> something like this should work:
>
> imaxdelay = 5; seconds
> kdelay = 1; seconds
> kfeedback = .5; 0-1
>                ; 0 = no delay in output
>                ; 1 = constant feedback, even if a_the_dry_signal stops
>  
>                ; sounding
> asignal = a_the_dry_signal
>
> afeedbacksig    init    0
> abufout  delayr    imaxdelay
> atap      deltap3    kdelay
> delayw    asignal + afeedbacksig
>
> afeedbacksig    =    atap*kfeedback ;used in the next k pass
>
> out asignal
>
> bye,
> Iain
>
> > Date: Tue, 23 Jun 2009 16:04:56 +0200
> > From: atte.jensen@...
> > To: csound@...
> > Subject: [Csnd] making a delay with feedback
> >
> > Hi
> >
> > I'm struggling to make (what would seem) a simple delay with variable
> > feedback. But no matter what I try it just won't behave. If someone
> > could make a simple example from the following (it's supposed to be
> > happening in an always-on output-module instrument), I'll be forever
> > grateful (and forever copy/paste'ing the code):
> >
> > imaxdelay = 5; seconds
> > kdelay = 1; seconds
> > kfeedback = .5; 0-1
> > ; 0 = no delay in output
> > ; 1 = constant feedback, even if a_the_dry_signal stops
> >
> > ; sounding
> > asignal = a_the_dry_signal
> > ; here should be the code to make the delay happen :-)
> > out asignal
> >
> > I'm sorry about the newbie question, I never seemed to be able to wrap
> > my head around deltapi and friends.
> >
> > --
> > Atte
> >
> > http://atte.dk http://modlys.dk http://virb.com/atte
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@... with body "unsubscribe csound"
>


Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
>

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,National University of Ireland, Maynooth

 « Return to Thread: making a delay with feedback