Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Zero Delay Feedback Filter

DSP related issues, mathematics, processing and techniques

Re: Zero Delay Feedback Filter

Postby KG_is_back » Tue Mar 25, 2014 11:42 pm

I've tried switching the filter outputs (lpf0 and lpf1 before downsampling) and it seems to fix the issue. The output seems additionally lowpassed that way (but that might be the work of oversampling lowpass filter)
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Tue Mar 25, 2014 11:57 pm

thank you for trying to help. but that is not the right fix. it just makes a notch at nyquist. it is correct only when the two curves entirely correspond.
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Wed Mar 26, 2014 1:31 am

FIXED... added one sample delay to in1 and out0 ...the feedback probably goes in opposite direction than it should be. (like x0,y0 are actually in feedback)
Attachments
ZDF filter OS DP fixed.osm
(29.27 KiB) Downloaded 1341 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Wed Mar 26, 2014 4:32 am

wow, thats close :)

i added HP and BP, but sadly the fix does not work on all filter types. so the search goes on... :cry:
ZDF filter OS DP not yet fixed.fsm
(33.03 KiB) Downloaded 1275 times


and thanks a bunch for trying :D
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Wed Mar 26, 2014 2:20 pm

Here, this one is fixed for good...
gotta separate the two parts of the filter to maintain right execution order. To transfer double precision values between modules I used round and difference, so the feedback is still DP.
Attachments
ZDF filter OS DP fixed2.fsm
(30.92 KiB) Downloaded 1290 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Wed Mar 26, 2014 3:02 pm

sorry KG, this behaves just like my non working version. i hope maybe Trogluddite can provide an explanation what is causing the trouble here. it is quite strange to me as the non OS version in DP works perfectly well.
ZDF filter OS DP not yet fixed2.fsm
(32.38 KiB) Downloaded 1281 times
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Wed Mar 26, 2014 4:59 pm

tor wrote:sorry KG, this behaves just like my non working version. i hope maybe Trogluddite can provide an explanation what is causing the trouble here. it is quite strange to me as the non OS version in DP works perfectly well.
ZDF filter OS DP not yet fixed2.fsm


Now that is very strange... my fixed version works perfectly here... I'm still using Flowstone 3.0.2.0
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Wed Mar 26, 2014 5:27 pm

If you look at the yellow graph when you sweep filter frequency towards 20khz you see that it warps and then disappears. You have also left out the regular OS filter type selection so you can not in your example compare the regular (grey curve) and the DP (yellow curve) when selecting different filter types.
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Wed Mar 26, 2014 5:49 pm

here's screenshot
Attachments
screenshot.png
screenshot.png (51.57 KiB) Viewed 28313 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Wed Mar 26, 2014 5:56 pm

i see that, but what happens to the yellow curve when you change filter type to BP or HP?

*Edit: Here with me your second fix shows that the yellow curve is warped and the disappear near 20khz and the grey curve just stays at LP filter type.
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

PreviousNext

Return to DSP

Who is online

Users browsing this forum: No registered users and 7 guests