Csound Csound-dev Csound-tekno Search About

[Csnd] comb doesn't work when in == out

Date2011-06-17 22:29
FromMark Van Peteghem
Subject[Csnd] comb doesn't work when in == out
Hi,

Just a small remark: it seems that comb doesn't work well if the input 
signal is the same as the output signal, the output is just 0 (CSound 
5.13, doubles). I think the manual should mention that.

Date2011-06-17 23:41
FromVictor Lazzarini
SubjectRe: [Csnd] comb doesn't work when in == out
Could you give us an example CSD?
On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:

> Hi,
>
> Just a small remark: it seems that comb doesn't work well if the  
> input signal is the same as the output signal, the output is just 0  
> (CSound 5.13, doubles). I think the manual should mention that.
>
> -- 
> Mark
> _________________________________________
> When you get lemons, you make lemonade.
> When you get hardware, you make software.
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-06-18 19:45
FromMark Van Peteghem
SubjectRe: [Csnd] comb doesn't work when in == out
Attachmentscomb-problem.csd  
Sure, see attachment. Instrument 1 generates sound like expected, 
instrument 2 generates no sound.

Victor Lazzarini wrote:
> Could you give us an example CSD?
> On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:
>
>> Hi,
>>
>> Just a small remark: it seems that comb doesn't work well if the 
>> input signal is the same as the output signal, the output is just 0 
>> (CSound 5.13, doubles). I think the manual should mention that.
>>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-06-18 19:49
FromVictor Lazzarini
SubjectRe: [Csnd] comb doesn't work when in == out
Thanks, I'll take a look.
On 18 Jun 2011, at 19:45, Mark Van Peteghem wrote:

> Sure, see attachment. Instrument 1 generates sound like expected,  
> instrument 2 generates no sound.
>
> Victor Lazzarini wrote:
>> Could you give us an example CSD?
>> On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:
>>
>>> Hi,
>>>
>>> Just a small remark: it seems that comb doesn't work well if the  
>>> input signal is the same as the output signal, the output is just  
>>> 0 (CSound 5.13, doubles). I think the manual should mention that.
>>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
> 
>
> 
> nchnls = 1
>
> instr 1
>  asig vco2 5000, 400
>  ares comb asig, 3.5, 0.1
>  out ares
> endin
>
> instr 2
>  asig vco2 5000, 400
>  asig comb asig, 3.5, 0.1
>  out asig
> endin
>
> 
>
> 
> i1 0 1
> i2 2 1
> e
> 
>
> 
> 
> 
> 
> 0
> 0
> 198
> 341
> true
> 
> 
>  231
>  46
>  255
> 
> 
>  slider1
>  5
>  5
>  20
>  100
>  {4e1e59ed-3dfd-4e40-bc35-a4f46b7400df}
>  true
>  0
>  -3
>  0.00000000
>  1.00000000
>  0.00000000
>  lin
>  continuous
>  -1.00000000
>  false
> 
> 
> 
> 
> 
> ioView nobackground {59367, 11822, 65535}
> ioSlider {5, 5} {20, 100} 0.000000 1.000000 0.000000 slider1
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-06-18 20:11
FromVictor Lazzarini
SubjectRe: [Csnd] comb doesn't work when in == out
yeah, typical comb filter code fills the output from delay before  
reading from input, so if the two are the same, we have a problem.
Fixed in GIT.

Victor


On 18 Jun 2011, at 19:49, Victor Lazzarini wrote:

> Thanks, I'll take a look.
> On 18 Jun 2011, at 19:45, Mark Van Peteghem wrote:
>
>> Sure, see attachment. Instrument 1 generates sound like expected,  
>> instrument 2 generates no sound.
>>
>> Victor Lazzarini wrote:
>>> Could you give us an example CSD?
>>> On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:
>>>
>>>> Hi,
>>>>
>>>> Just a small remark: it seems that comb doesn't work well if the  
>>>> input signal is the same as the output signal, the output is just  
>>>> 0 (CSound 5.13, doubles). I think the manual should mention that.
>>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>> 
>>
>> 
>> nchnls = 1
>>
>> instr 1
>> asig vco2 5000, 400
>> ares comb asig, 3.5, 0.1
>> out ares
>> endin
>>
>> instr 2
>> asig vco2 5000, 400
>> asig comb asig, 3.5, 0.1
>> out asig
>> endin
>>
>> 
>>
>> 
>> i1 0 1
>> i2 2 1
>> e
>> 
>>
>> 
>> 
>> 
>> 
>> 0
>> 0
>> 198
>> 341
>> true
>> 
>> 
>> 231
>> 46
>> 255
>> 
>> 
>> slider1
>> 5
>> 5
>> 20
>> 100
>> {4e1e59ed-3dfd-4e40-bc35-a4f46b7400df}
>> true
>> 0
>> -3
>> 0.00000000
>> 1.00000000
>> 0.00000000
>> lin
>> continuous
>> -1.00000000
>> false
>> 
>> 
>> 
>> 
>> 
>> ioView nobackground {59367, 11822, 65535}
>> ioSlider {5, 5} {20, 100} 0.000000 1.000000 0.000000 slider1
>> 
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-06-19 10:26
FromMark Van Peteghem
SubjectRe: [Csnd] comb doesn't work when in == out
Thanks. I thought there was a deeper reason why this is so, like with 
many pvs opcodes, perhaps for performance reasons, so I would have been 
happy if it was mentioned in the manual, but this is better.

Victor Lazzarini wrote:
> yeah, typical comb filter code fills the output from delay before 
> reading from input, so if the two are the same, we have a problem.
> Fixed in GIT.
>
> Victor
>
>
> On 18 Jun 2011, at 19:49, Victor Lazzarini wrote:
>
>> Thanks, I'll take a look.
>> On 18 Jun 2011, at 19:45, Mark Van Peteghem wrote:
>>
>>> Sure, see attachment. Instrument 1 generates sound like expected, 
>>> instrument 2 generates no sound.
>>>
>>> Victor Lazzarini wrote:
>>>> Could you give us an example CSD?
>>>> On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Just a small remark: it seems that comb doesn't work well if the 
>>>>> input signal is the same as the output signal, the output is just 
>>>>> 0 (CSound 5.13, doubles). I think the manual should mention that.
>>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>> 
>>>
>>> 
>>> nchnls = 1
>>>
>>> instr 1
>>> asig vco2 5000, 400
>>> ares comb asig, 3.5, 0.1
>>> out ares
>>> endin
>>>
>>> instr 2
>>> asig vco2 5000, 400
>>> asig comb asig, 3.5, 0.1
>>> out asig
>>> endin
>>>
>>> 
>>>
>>> 
>>> i1 0 1
>>> i2 2 1
>>> e
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 0
>>> 0
>>> 198
>>> 341
>>> true
>>> 
>>> 
>>> 231
>>> 46
>>> 255
>>> 
>>> 
>>> slider1
>>> 5
>>> 5
>>> 20
>>> 100
>>> {4e1e59ed-3dfd-4e40-bc35-a4f46b7400df}
>>> true
>>> 0
>>> -3
>>> 0.00000000
>>> 1.00000000
>>> 0.00000000
>>> lin
>>> continuous
>>> -1.00000000
>>> false
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ioView nobackground {59367, 11822, 65535}
>>> ioSlider {5, 5} {20, 100} 0.000000 1.000000 0.000000 slider1
>>> 



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-06-19 11:10
FromVictor Lazzarini
SubjectRe: [Csnd] comb doesn't work when in == out
No deeper reason, just code that was not written with i/o sharing in  
mind.

Victor
On 19 Jun 2011, at 10:26, Mark Van Peteghem wrote:

> Thanks. I thought there was a deeper reason why this is so, like  
> with many pvs opcodes, perhaps for performance reasons, so I would  
> have been happy if it was mentioned in the manual, but this is better.
>
> Victor Lazzarini wrote:
>> yeah, typical comb filter code fills the output from delay before  
>> reading from input, so if the two are the same, we have a problem.
>> Fixed in GIT.
>>
>> Victor
>>
>>
>> On 18 Jun 2011, at 19:49, Victor Lazzarini wrote:
>>
>>> Thanks, I'll take a look.
>>> On 18 Jun 2011, at 19:45, Mark Van Peteghem wrote:
>>>
>>>> Sure, see attachment. Instrument 1 generates sound like expected,  
>>>> instrument 2 generates no sound.
>>>>
>>>> Victor Lazzarini wrote:
>>>>> Could you give us an example CSD?
>>>>> On 17 Jun 2011, at 22:29, Mark Van Peteghem wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Just a small remark: it seems that comb doesn't work well if  
>>>>>> the input signal is the same as the output signal, the output  
>>>>>> is just 0 (CSound 5.13, doubles). I think the manual should  
>>>>>> mention that.
>>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>> 
>>>>
>>>> 
>>>> nchnls = 1
>>>>
>>>> instr 1
>>>> asig vco2 5000, 400
>>>> ares comb asig, 3.5, 0.1
>>>> out ares
>>>> endin
>>>>
>>>> instr 2
>>>> asig vco2 5000, 400
>>>> asig comb asig, 3.5, 0.1
>>>> out asig
>>>> endin
>>>>
>>>> 
>>>>
>>>> 
>>>> i1 0 1
>>>> i2 2 1
>>>> e
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 0
>>>> 0
>>>> 198
>>>> 341
>>>> true
>>>> 
>>>> 
>>>> 231
>>>> 46
>>>> 255
>>>> 
>>>> 
>>>> slider1
>>>> 5
>>>> 5
>>>> 20
>>>> 100
>>>> {4e1e59ed-3dfd-4e40-bc35-a4f46b7400df}
>>>> true
>>>> 0
>>>> -3
>>>> 0.00000000
>>>> 1.00000000
>>>> 0.00000000
>>>> lin
>>>> continuous
>>>> -1.00000000
>>>> false
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ioView nobackground {59367, 11822, 65535}
>>>> ioSlider {5, 5} {20, 100} 0.000000 1.000000 0.000000 slider1
>>>> 
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"