Csound Csound-dev Csound-tekno Search About

[Cs-dev] CSound flush the delay line

Date2013-06-18 07:00
Fromlppier
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

Date2013-06-18 07:58
FromVictor Lazzarini
SubjectRe: [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

Date2013-06-18 08:30
Fromlppier
SubjectRe: [Cs-dev] CSound flush the delay line
AttachmentsNone  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
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
> <a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]
> 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
<a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/CSound-flush-the-delay-line-tp5724628p5724629.html
To unsubscribe from CSound flush the delay line, click here.
NAML



View this message in context: Re: CSound flush the delay line
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2013-06-18 08:40
FromVictor Lazzarini
SubjectRe: [Cs-dev] CSound flush the delay line
AttachmentsNone  None  

kdel  port  kdeltimeL, 0.01

...then use kdel in deltapi.


On 18 Jun 2013, at 08:30, lppier wrote:

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
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
> <a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]
> 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
<a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/CSound-flush-the-delay-line-tp5724628p5724629.html
To unsubscribe from CSound flush the delay line, click here.
NAML



View this message in context: Re: CSound flush the delay line
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




Date2013-06-18 09:50
FromPier
SubjectRe: [Cs-dev] CSound flush the delay line
AttachmentsNone  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:


kdel  port  kdeltimeL, 0.01

...then use kdel in deltapi.


On 18 Jun 2013, at 08:30, lppier wrote:

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
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
> <a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]
> 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
<a href="x-msg://107/user/SendEmail.jtp?type=node&amp;node=5724629&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/CSound-flush-the-delay-line-tp5724628p5724629.html
To unsubscribe from CSound flush the delay line, click here.
NAML



View this message in context: Re: CSound flush the delay line
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
https://lists.sourceforge.net/lists/listinfo/csound-devel