Csound Csound-dev Csound-tekno Search About

[Csnd] is this a bug? gen 20, hamming window issue

Date2010-12-15 20:39
Frompeiman khosravi
Subject[Csnd] is this a bug? gen 20, hamming window issue
Hello again,

There seems to be a problem with the hamming window generated by GEN20.

I'm using the table as windowing function for partikkel. Please listen
to the short sounds bellow. The csds are identical but the first uses
hamming and the second hanning windows. The glitches in the first one
make it basically unusable. Is this normal with hamming windows?

http://idisk.mac.com/peimankh-Public/hamming.aif
http://idisk.mac.com/peimankh-Public/hanning.aif

Incidentally the picture shows the generated function table content.
Table 100 (hamming) seems to start and end above the zero line which
is what is producing the glitches, I don't know if this is normal.

giWinHamming   ftgen 100, 0, 4096, 20, 1 ; Hamming
giWinHanning   ftgen 101, 0, 4096, 20, 2 ; Hanning

http://idisk.mac.com/peimankh-Public/windows.png


Thanks very much in advance.

Best,

Peiman


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"

Date2010-12-15 20:58
FromRichard Dobson
Subject[Csnd] Re: is this a bug? gen 20, hamming window issue
The Hamming window does indeed start and end with non-zero values. It is 
very much associated with tasks such as FFT analysis, and is not 
designed for use as an envelope. I would suggest sticking with the Hann 
window.

Richard Dobson

On 15/12/2010 20:39, peiman khosravi wrote:
> Hello again,
>
> There seems to be a problem with the hamming window generated by GEN20.
>
> I'm using the table as windowing function for partikkel. Please listen
> to the short sounds bellow. The csds are identical but the first uses
> hamming and the second hanning windows. The glitches in the first one
> make it basically unusable. Is this normal with hamming windows?
>
..



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"

Date2010-12-15 21:49
FromOeyvind Brandtsegg
Subject[Csnd] Re: is this a bug? gen 20, hamming window issue
It seems odd to use a (complete) windowing function with partikkel,
it commonly expects an "attack shape" and a "decay shape",
like splitting the window function on two if you wish.

If you want to, you can send me your csd and I'll take a quick look at it.
I use these attack/decay shapes a lot:
	giSigmoRise 	ftgen	0, 0, 8193, 19, 0.5, 1, 270, 1				; rising
sigmoid, attack shape
	giSigmoFall 	ftgen	0, 0, 8193, 19, 0.5, 1, 90, 1				; falling
sigmoid, decay shape


all best
Oeyvind

2010/12/15 peiman khosravi :
> Hello again,
>
> There seems to be a problem with the hamming window generated by GEN20.
>
> I'm using the table as windowing function for partikkel. Please listen
> to the short sounds bellow. The csds are identical but the first uses
> hamming and the second hanning windows. The glitches in the first one
> make it basically unusable. Is this normal with hamming windows?
>
> http://idisk.mac.com/peimankh-Public/hamming.aif
> http://idisk.mac.com/peimankh-Public/hanning.aif
>
> Incidentally the picture shows the generated function table content.
> Table 100 (hamming) seems to start and end above the zero line which
> is what is producing the glitches, I don't know if this is normal.
>
> giWinHamming   ftgen 100, 0, 4096, 20, 1 ; Hamming
> giWinHanning   ftgen 101, 0, 4096, 20, 2 ; Hanning
>
> http://idisk.mac.com/peimankh-Public/windows.png
>
>
> Thanks very much in advance.
>
> Best,
>
> Peiman
>
>
> 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"
>
>


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"


Date2010-12-15 23:27
Frompeiman khosravi
Subject[Csnd] Re: Re: is this a bug? gen 20, hamming window issue
Great, thanks very much.

Richard, that makes sense now. I learned a new thing today!

Oeyvind, that serves me right for not reading the manual properly! My
csd is a real mess right now, I will send you a copy as soon as I have
it tidied up a bit!

Cheers,

Peiman

On 15 December 2010 21:49, Oeyvind Brandtsegg  wrote:
> It seems odd to use a (complete) windowing function with partikkel,
> it commonly expects an "attack shape" and a "decay shape",
> like splitting the window function on two if you wish.
>
> If you want to, you can send me your csd and I'll take a quick look at it.
> I use these attack/decay shapes a lot:
>        giSigmoRise     ftgen   0, 0, 8193, 19, 0.5, 1, 270, 1                          ; rising
> sigmoid, attack shape
>        giSigmoFall     ftgen   0, 0, 8193, 19, 0.5, 1, 90, 1                           ; falling
> sigmoid, decay shape
>
>
> all best
> Oeyvind
>
> 2010/12/15 peiman khosravi :
>> Hello again,
>>
>> There seems to be a problem with the hamming window generated by GEN20.
>>
>> I'm using the table as windowing function for partikkel. Please listen
>> to the short sounds bellow. The csds are identical but the first uses
>> hamming and the second hanning windows. The glitches in the first one
>> make it basically unusable. Is this normal with hamming windows?
>>
>> http://idisk.mac.com/peimankh-Public/hamming.aif
>> http://idisk.mac.com/peimankh-Public/hanning.aif
>>
>> Incidentally the picture shows the generated function table content.
>> Table 100 (hamming) seems to start and end above the zero line which
>> is what is producing the glitches, I don't know if this is normal.
>>
>> giWinHamming   ftgen 100, 0, 4096, 20, 1 ; Hamming
>> giWinHanning   ftgen 101, 0, 4096, 20, 2 ; Hanning
>>
>> http://idisk.mac.com/peimankh-Public/windows.png
>>
>>
>> Thanks very much in advance.
>>
>> Best,
>>
>> Peiman
>>
>>
>> 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"
>>
>>
>
>
> 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"
>
>


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"