Csound Csound-dev Csound-tekno Search About

[Csnd] pvshift bug

Date2011-02-22 13:55
Frompeiman khosravi
Subject[Csnd] pvshift bug
Hello,

There seems to be a bug in pvshift introduced in version 5.13.



-odac



sr = 96000
ksmps = 16
nchnls = 1
0dbfs = 1

;; example written by joachim heintz 2009

instr 1

ifftsize	=		1024
ioverlap	=		ifftsize / 4
iwinsize	=		ifftsize
iwinshape	=		1; von-Hann window
ain	noise	.2, 0
fftin		pvsanal	ain, ifftsize, ioverlap, iwinsize, iwinshape;
fft-analysis of file
fshift		pvshift  	fftin, 0, 0;, ikeepform; shift frequencies
aout		pvsynth	fshift; resynthesize
		out		aout
endin




i 1 0 20
e




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-02-22 14:04
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] pvshift bug
Care to share with us what it does wrong?


> Hello,
>
> There seems to be a bug in pvshift introduced in version 5.13.
>
> 
> 
> -odac
> 
> 
>
> sr = 96000
> ksmps = 16
> nchnls = 1
> 0dbfs = 1
>
> ;; example written by joachim heintz 2009
>
> instr 1
>
> ifftsize	=		1024
> ioverlap	=		ifftsize / 4
> iwinsize	=		ifftsize
> iwinshape	=		1; von-Hann window
> ain	noise	.2, 0
> fftin		pvsanal	ain, ifftsize, ioverlap, iwinsize, iwinshape;
> fft-analysis of file
> fshift		pvshift  	fftin, 0, 0;, ikeepform; shift frequencies
> aout		pvsynth	fshift; resynthesize
> 		out		aout
> endin
>
> 
> 
>
> i 1 0 20
> e
> 
> 
>
>
> 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"

Date2011-02-22 14:06
FromVictor Lazzarini
SubjectRe: [Csnd] pvshift bug
yes, it looks like the gain is initialised to 0.

fshift	 pvshift fftin, 0, 0, 0, 1

will work. Thanks for spotting it.

Victor
On 22 Feb 2011, at 13:55, peiman khosravi wrote:

> Hello,
>
> There seems to be a bug in pvshift introduced in version 5.13.
>
> 
> 
> -odac
> 
> 
>
> sr = 96000
> ksmps = 16
> nchnls = 1
> 0dbfs = 1
>
> ;; example written by joachim heintz 2009
>
> instr 1
>
> ifftsize	=		1024
> ioverlap	=		ifftsize / 4
> iwinsize	=		ifftsize
> iwinshape	=		1; von-Hann window
> ain	noise	.2, 0
> fftin		pvsanal	ain, ifftsize, ioverlap, iwinsize, iwinshape;
> fft-analysis of file
> fshift		pvshift  	fftin, 0, 0;, ikeepform; shift frequencies
> aout		pvsynth	fshift; resynthesize
> 		out		aout
> endin
>
> 
> 
>
> i 1 0 20
> e
> 
> 
>
>
> 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"

Date2011-02-22 14:08
Frompeiman khosravi
SubjectRe: [Csnd] pvshift bug
The attached csd produces a low-pass filtered sound despite the shift
amount being set to zero. The result should not be altered compared to
the original input sound (noise in this case).

Best,

Peiman

On 22 February 2011 14:04,   wrote:
> Care to share with us what it does wrong?
>
>
>> Hello,
>>
>> There seems to be a bug in pvshift introduced in version 5.13.
>>
>> 
>> 
>> -odac
>> 
>> 
>>
>> sr = 96000
>> ksmps = 16
>> nchnls = 1
>> 0dbfs = 1
>>
>> ;; example written by joachim heintz 2009
>>
>> instr 1
>>
>> ifftsize      =               1024
>> ioverlap      =               ifftsize / 4
>> iwinsize      =               ifftsize
>> iwinshape     =               1; von-Hann window
>> ain   noise   .2, 0
>> fftin         pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape;
>> fft-analysis of file
>> fshift                pvshift         fftin, 0, 0;, ikeepform; shift frequencies
>> aout          pvsynth fshift; resynthesize
>>               out             aout
>> endin
>>
>> 
>> 
>>
>> i 1 0 20
>> e
>> 
>> 
>>
>>
>> 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"


Date2011-02-22 14:09
Frompeiman khosravi
SubjectRe: [Csnd] pvshift bug
Thanks Victor.

Best,

Peiman

On 22 February 2011 14:06, Victor Lazzarini  wrote:
> yes, it looks like the gain is initialised to 0.
>
> fshift   pvshift fftin, 0, 0, 0, 1
>
> will work. Thanks for spotting it.
>
> Victor
> On 22 Feb 2011, at 13:55, peiman khosravi wrote:
>
>> Hello,
>>
>> There seems to be a bug in pvshift introduced in version 5.13.
>>
>> 
>> 
>> -odac
>> 
>> 
>>
>> sr = 96000
>> ksmps = 16
>> nchnls = 1
>> 0dbfs = 1
>>
>> ;; example written by joachim heintz 2009
>>
>> instr 1
>>
>> ifftsize        =               1024
>> ioverlap        =               ifftsize / 4
>> iwinsize        =               ifftsize
>> iwinshape       =               1; von-Hann window
>> ain     noise   .2, 0
>> fftin           pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape;
>> fft-analysis of file
>> fshift          pvshift         fftin, 0, 0;, ikeepform; shift frequencies
>> aout            pvsynth fshift; resynthesize
>>                out             aout
>> endin
>>
>> 
>> 
>>
>> i 1 0 20
>> e
>> 
>> 
>>
>>
>> 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"


Date2011-02-22 15:29
FromVictor Lazzarini
SubjectRe: [Csnd] pvshift bug
Fixed in GIT.

Victor
On 22 Feb 2011, at 14:09, peiman khosravi wrote:

> Thanks Victor.
>
> Best,
>
> Peiman
>
> On 22 February 2011 14:06, Victor Lazzarini  
>  wrote:
>> yes, it looks like the gain is initialised to 0.
>>
>> fshift   pvshift fftin, 0, 0, 0, 1
>>
>> will work. Thanks for spotting it.
>>
>> Victor
>> On 22 Feb 2011, at 13:55, peiman khosravi wrote:
>>
>>> Hello,
>>>
>>> There seems to be a bug in pvshift introduced in version 5.13.
>>>
>>> 
>>> 
>>> -odac
>>> 
>>> 
>>>
>>> sr = 96000
>>> ksmps = 16
>>> nchnls = 1
>>> 0dbfs = 1
>>>
>>> ;; example written by joachim heintz 2009
>>>
>>> instr 1
>>>
>>> ifftsize        =               1024
>>> ioverlap        =               ifftsize / 4
>>> iwinsize        =               ifftsize
>>> iwinshape       =               1; von-Hann window
>>> ain     noise   .2, 0
>>> fftin           pvsanal ain, ifftsize, ioverlap, iwinsize,  
>>> iwinshape;
>>> fft-analysis of file
>>> fshift          pvshift         fftin, 0, 0;, ikeepform; shift  
>>> frequencies
>>> aout            pvsynth fshift; resynthesize
>>>                out             aout
>>> endin
>>>
>>> 
>>> 
>>>
>>> i 1 0 20
>>> e
>>> 
>>> 
>>>
>>>
>>> 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"
>



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-02-22 18:43
Frompeiman khosravi
SubjectRe: [Csnd] pvshift bug
Cheers.

Peiman

On 22 February 2011 15:29, Victor Lazzarini  wrote:
> Fixed in GIT.
>
> Victor
> On 22 Feb 2011, at 14:09, peiman khosravi wrote:
>
>> Thanks Victor.
>>
>> Best,
>>
>> Peiman
>>
>> On 22 February 2011 14:06, Victor Lazzarini 
>> wrote:
>>>
>>> yes, it looks like the gain is initialised to 0.
>>>
>>> fshift   pvshift fftin, 0, 0, 0, 1
>>>
>>> will work. Thanks for spotting it.
>>>
>>> Victor
>>> On 22 Feb 2011, at 13:55, peiman khosravi wrote:
>>>
>>>> Hello,
>>>>
>>>> There seems to be a bug in pvshift introduced in version 5.13.
>>>>
>>>> 
>>>> 
>>>> -odac
>>>> 
>>>> 
>>>>
>>>> sr = 96000
>>>> ksmps = 16
>>>> nchnls = 1
>>>> 0dbfs = 1
>>>>
>>>> ;; example written by joachim heintz 2009
>>>>
>>>> instr 1
>>>>
>>>> ifftsize        =               1024
>>>> ioverlap        =               ifftsize / 4
>>>> iwinsize        =               ifftsize
>>>> iwinshape       =               1; von-Hann window
>>>> ain     noise   .2, 0
>>>> fftin           pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape;
>>>> fft-analysis of file
>>>> fshift          pvshift         fftin, 0, 0;, ikeepform; shift
>>>> frequencies
>>>> aout            pvsynth fshift; resynthesize
>>>>               out             aout
>>>> endin
>>>>
>>>> 
>>>> 
>>>>
>>>> i 1 0 20
>>>> e
>>>> 
>>>> 
>>>>
>>>>
>>>> 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"
>>
>
>
>
> 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"