Zero Delay Feedback Filter

DSP related issues, mathematics, processing and techniques
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Post by KG_is_back »

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)
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Post by tor »

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.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Post by KG_is_back »

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 1514 times
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Post by tor »

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 1425 times


and thanks a bunch for trying :D
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Post by KG_is_back »

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 1471 times
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Post by tor »

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 1463 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Post by KG_is_back »

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
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Post by tor »

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.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Post by KG_is_back »

here's screenshot
Attachments
screenshot.png
screenshot.png (51.57 KiB) Viewed 30219 times
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Post by tor »

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.
Post Reply