try re-arranging the feedback path of the tf22t so that the b1-a1 and b2-a2 
summations are performed before they are added together.

regards,
Geoffrey


On 24 Apr 2014, at 06:27, Julius Smith wrote:

> Ok, all four direct-form biquads are now in filter.lib (after you pull the 
> latest master):
> 
> tf21(b0,b1,b2,a1,a2) = // tf2, direct-form 1:
>     _ <:(mem<:((mem:*(b2)),*(b1))),*(b0) :>_
>     : ((_,_,_:>_) ~(_<:*(-a1),(mem:*(-a2))));
> tf22(b0,b1,b2,a1,a2) = // tf2, direct-form 2:
>     _ : (((_,_,_:>_)~*(-a1)<:mem,*(b0))~*(-a2))
>       : (_<:mem,*(b1)),_ : *(b2),_,_ :> _;
> tf22t(b0,b1,b2,a1,a2) = // tf2, direct-form 2 transposed:
>     _ : (_,_,(_ <: *(b2)',*(b1)',*(b0))
>       : _,+',_,_ :> _)~*(-a1)~*(-a2) : _;
> tf21t(b0,b1,b2,a1,a2) = // tf2, direct-form 1 transposed:
>     tf22t(1,0,0,a1,a2) : tf22t(b0,b1,b2,0,0); // or write it out if you want
> 
> I have a little resonator filter-bank project that may be able to see some 
> differences in numerical behavior, and I'll report any findings.
> 
> - Julius
> 
> At 12:54 PM 4/23/2014, Geoffrey Barton wrote:
> 
>> On 22 Apr 2014, at 21:41, Timo Westkämper wrote:
>> 
>>> tf2t2 is ok.
>>> 
>>> 
>>> On Tue, Apr 22, 2014 at 11:39 PM, Julius Smith <[email protected] > 
>>> wrote:
>>> That's a nice blog - I still want to study the issue, to see it better, but 
>>> I'm happy to implement TDF2 biquad in the meantime.  What's a good name - 
>>> "tf2t2"?
>> 
>> I did try tdf2 a couple of weeks ago after I worked out how to get recursion 
>> to work. I could not measure any advantage via a 24 bit integer signal path, 
>> despite having previous positive experience with the same topology on 32bit 
>> floating point dsp chips. Maybe the advantage of the topology disappeared 
>> due to the code optimisation. Interested to see your results.
>> 
>> BTW; compiling as -double there is quite a noticeable flattening of the 
>> noise floor compared with 32 bit.
>> 
>> regards,
>> Geoffrey
>> 
>>> 
>>> 
>>> At 01:12 PM 4/22/2014, Timo Westkämper wrote:
>>>> Hi.
>>>> 
>>>> I was choosing df2 for floating point based on the suggestion in this blog 
>>>> post http://www.earlevel.com/main/2003/02/28/biquads/
>>>> 
>>>> 
>>>> Br,
>>>> Timo
>>>> 
>>>> 
>>>> On Tue, Apr 22, 2014 at 11:05 PM, Julius Smith <[email protected] > 
>>>> wrote:
>>> I think DF2 has not yet been implemented.  I would be curious to know why 
>>> you need it in floating point? - Julius
>>> 
>>> 
>>> At 06:43 AM 4/22/2014, Timo Westkämper wrote:
>>>> 
>>>> Hi.
>>>> Does Faust provide a direct function for Biquad in transposed direct form 
>>>> 2? I couldn't find it in filter.lib.
>>>> Br,
>>>> Timo
>>>> ------------------------------------------------------------------------------
>>>> Start Your Social Network Today - Download eXo Platform
>>>> Build your Enterprise Intranet with eXo Platform Software
>>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>>>> http://p.sf.net/sfu/ExoPlatform
>>>> _______________________________________________
>>>> Faudiostream-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>>> 
>>> Julius O. Smith III <[email protected] >
>>> Professor of Music and, by courtesy, Electrical Engineering
>>> CCRMA, Stanford University
>>> http://ccrma.stanford.edu/~jos/ 
>>> 
>>> 
>>> Julius O. Smith III <[email protected] >
>>> Professor of Music and, by courtesy, Electrical Engineering
>>> CCRMA, Stanford University
>>> http://ccrma.stanford.edu/~jos/ 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Start Your Social Network Today - Download eXo Platform
>>> Build your Enterprise Intranet with eXo Platform Software
>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>>> http://p.sf.net/sfu/ExoPlatform_______________________________________________
>>>  
>>> Faudiostream-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>> 
>> ------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> _______________________________________________
>> Faudiostream-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
> 
> Julius O. Smith III <[email protected]>
> Professor of Music and, by courtesy, Electrical Engineering
> CCRMA, Stanford University
> http://ccrma.stanford.edu/~jos/
> 
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform_______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to