[Cs-dev] CSound flush the delay line
Date | 2013-06-18 07:00 |
From | lppier |
Subject | [Cs-dev] CSound flush the delay line |
Hi, it's me again with the delay. I settled on a deltapi solution for my implementation. Currently when I change the delaytime in real time I hear a bit of clicks, which is repeated again and again by the delay. I would like to flush out the whatever is in the delay line whenever I change the delaytime so that I don't get this. I've tried multiplying aout, ain, kfdbk by 0 but it doesn't help the situation. Is there a simple way to clear out the delay buffer? Many thanks for your help. Here's my instrument instr 101 klastDelTimeL init 0 kdelayOn chnget "delayOn" kfdbkL chnget "feedbackL" kdeltimeL chnget "delaytimeL" kamp chnget "delaydepth" kChanged changed kdeltimeL ain = gaDelayBus gaDelayBus = 0 ;iamp = p4 kParam = 1 if (kdelayOn==1) then ;simple delay aout delayr 6.0 aout1 deltapi kdeltimeL if (kChanged==1) then kParam = 0 endif delayw ain + (aout1 * kfdbkL * kParam) aoutL = aout1 * kamp outs aoutL, aoutL if (kdelayOn==0) then outs ain * 0, ain * 0 endif endin -- View this message in context: http://csound.1045644.n5.nabble.com/CSound-flush-the-delay-line-tp5724628.html Sent from the Csound - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-18 07:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] CSound flush the delay line |
I don't think there is a simple way to flush the delayline (I think it would need a loop of some sort). Did you try smoothing the delaytime controls with a lowpass filter like port? That might help remove the clicks. Victor On 18 Jun 2013, at 07:00, lppier wrote: > Hi, it's me again with the delay. I settled on a deltapi solution for my > implementation. > Currently when I change the delaytime in real time I hear a bit of clicks, > which is repeated again and again by the delay. > I would like to flush out the whatever is in the delay line whenever I > change the delaytime so that I don't get this. > I've tried multiplying aout, ain, kfdbk by 0 but it doesn't help the > situation. > > Is there a simple way to clear out the delay buffer? > Many thanks for your help. > > Here's my instrument > > instr 101 > > klastDelTimeL init 0 > > kdelayOn chnget "delayOn" > kfdbkL chnget "feedbackL" > kdeltimeL chnget "delaytimeL" > kamp chnget "delaydepth" > > kChanged changed kdeltimeL > > ain = gaDelayBus > gaDelayBus = 0 > ;iamp = p4 > > kParam = 1 > > if (kdelayOn==1) then > ;simple delay > aout delayr 6.0 > aout1 deltapi kdeltimeL > > if (kChanged==1) then > kParam = 0 > endif > > delayw ain + (aout1 * kfdbkL * kParam) > > aoutL = aout1 * kamp > outs aoutL, aoutL > > if (kdelayOn==0) then > outs ain * 0, ain * 0 > endif > endin > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/CSound-flush-the-delay-line-tp5724628.html > Sent from the Csound - Dev mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-18 08:30 |
From | lppier |
Subject | Re: [Cs-dev] CSound flush the delay line |
Attachments | None None |
Hi Victor, How would I do that? Could you show me a rough example? Many thanks.. Did you try smoothing the delaytime controls with a lowpass filter like port? That might help remove the clicks. Victor View this message in context: Re: CSound flush the delay line Sent from the Csound - Dev mailing list archive at Nabble.com. |
Date | 2013-06-18 08:40 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] CSound flush the delay line |
Attachments | None None |
kdel port kdeltimeL, 0.01 ...then use kdel in deltapi. On 18 Jun 2013, at 08:30, lppier wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-18 09:50 |
From | Pier |
Subject | Re: [Cs-dev] CSound flush the delay line |
Attachments | None None |
Thanks, tried it but it I still hear the clicks/distortion. It is an interesting opcode though! Pier. On 18 Jun, 2013, at 3:40 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|