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 SVF and Allpass based filter.

DSP related issues, mathematics, processing and techniques

Zero Delay SVF and Allpass based filter.

Postby Tepeix » Sun Aug 06, 2023 5:25 pm

A sort of experiment allpass based filter close to a Zero Delay Feedback SVF filter.
For curiosity.. But maybe as degraded but little optimized version ?? (the coefficient of the allpass could be approximated more easily i suppose)

Seams close but the difference occurs when using resonance..
The resonance is not zero delay... While the allpass seams without to strangely behave like zero delay ????
And how could we try to make it zero delay if possible ?)

Then testing it for variable cutoff, it seams to remain stable.. But maybe i need more stress test or analyse ?..

héhé that's really a strange discovery for me ;)
Attachments
Variable Allp SVF test v2.fsm
(v2 fixed lfo value)
(70.75 KiB) Downloaded 1317 times
ZeroDelay SVF us allpass.fsm
(116.67 KiB) Downloaded 1326 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Tue Aug 08, 2023 11:56 am

Reading more the famous book : https://www.native-instruments.com/file ... _2.1.0.pdf

There's a mention to allpass substitution at page 92.
(yet i'm not sure to really understand what is said about)
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Wed Aug 09, 2023 11:56 am

This structure, with a 2th allpass. Mimic in a other way a SVF Zero Delay Filter.

Yet i'm very happy to find this strange thing, but there's a lost parameter in the equation... ...

Subtracting the allpass from the original we get the BP.
Then we take the second "pole" of the allpass, multiply by this parameter, and subtract to separate LP and HP...

It's possible to get the same response as a SVF for 0 to 1/4 nyquiest..

But how to calculate the value of this new coefficient ???
Attachments
the lost parameter Allpass substitution.fsm
(96.28 KiB) Downloaded 1288 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Thu Aug 10, 2023 4:45 pm

I think i find an approximation... Don't ask me how..
Was laughing to see it working because how much i try blindly to map some tan value to fit...

So in this particular allpass the value of coefficient are from 0 to 2.
For no res, the multiply value to get the LP normalized are C1 + 2-C2. (at least for 0 to 1/4 nyquiest)

To add res, we divide the frequency at the input of the C1 coefficient.

I this case i find that we have to do C1 +(2-C2) + C1*(a function close than tan)

So finally we have this : as Q is from 1 to 0 for more res: ((tan(1-Q)*(pi-((1-Q)*pi/2)))*((pi/4+(1-Q)) *C1) +C1+(2-C2)

... Now i don't even know if this really mimic a Zero Delay SVF...
Problem is that it doesn't work after 1/4 nyquiest... But maybe some more modification might be made..
Attachments
the lost parameter Allpass substitution2.fsm
(36.79 KiB) Downloaded 1300 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Sun Aug 13, 2023 4:41 pm

Going back to the first way.. With 1th allpass..
(seams like 2th allpass have some unnatural response when trying to mimic analog circuit...
unless maybe just adding resonance ??)

Finding an optimization to only use 2 allpass instead of 3. Then the miracle happen !!)

It seams possible to really mimic the resonance of a Zero Delay Feedback SVF with allpass !!

The problem is that i have now 3 more parameter that need to be adjusted ;( ;(

Finally using the bp and not lp as the main feedback, it's possible to adjust adding also the hp and compensate,
which strangely seams to perfectly mimic the zero delay !
A paradox because there's obviously a delay ! Does this go in the future ??

But now the volume of the bp and hp might be compensated..
Also the level of hp re-injection might be calculated... Don't know how yet...
Attachments
Allpass SVF.fsm
(98.58 KiB) Downloaded 1278 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby martinvicanek » Sun Aug 13, 2023 6:33 pm

Perhaps there is a misunderstanding about zero delay feedback filters. They do have delay in the transmission, as any causal filter must have. In fact the SVF has exactly the same transfer function as a direct form biquad. The term „zero delay feedback“ comes from a particular topology (delay-less loop) which is dismissed in textbooks as allegedly unsolvable. The argument goes like this: you cannot solve an equation like x = 2*x -1, because in order to compute x on the left hand side, you have to plug in x on the right hand side, which is unknown. But of course we can solve that equation quite easily to get x= 1.
The zero delay feedback topology has some advantages over direct forms, i.e. it handles low frequencies much better, and it is stable against fast modulation.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Sun Aug 13, 2023 8:45 pm

Yes, in fact not going to the future, there's always a state which i do not see as a delay..
But maybe we could say that it's a sort of delay, while the coefficient and/or structure make it like there's not.. ??)

But i was surprise as here, it look more like a sort of simple feedback, But mixing BP and HP there's a way to compensate and give the same response as a zero delay topology with allpass substitution..

But i don't know if there's any advantage to make this "allpass substitution"...
As now there's the need to find 3 or 4 more coefficients..
At some frequency cutoff the BP and HP feedback might be mixed differently.. So 2 Q value..
Then the BP and HP need to be normalized..

But it's some attempt to see how allpass substitution could work.
Yet this particular filter is i guess more difficult to do like this due to the triple output..
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Mon Aug 14, 2023 10:20 am

Find some way to calculate the 4 values..

Yet it's not perfect.. When close to nyquiest the resonance decrease, and the level of Bp Hp deviate a little..
Also the level of Hp deviate when res is high...

It might be possible to adjust increasing Q, But at nyquiest there's no more resonance..
This is indeed a big difference against true ZDF !..
But, the true decrease happen so late that if increasing Q it might be not audible..

What is cool is that for now the 4 values are not so difficult to get..
Attachments
Allpass SVFv4.fsm
(28.25 KiB) Downloaded 1281 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Mon Aug 14, 2023 7:09 pm

Find a way to better normalize Bp and Hp..
That's easy, lvBp = 1-(q1*4) LvHp = 1+(q2*4) ;)

Now testing with lfo this seams very stable.
But maybe sounding strange ?? I have yet to compare. there's some strange resonance at some setting...

Now is it Zero Delay ? I'm not sure.. But if not might be very close except nyquiest..
Feedback coming from Bp and Hp, it's impossible to maintain resonance at the end..
But there's an optional fix that increase resonance close to it.
Might be possible using also the Lp..

Need to hear more comparison too..
Attachments
Allpass SVFv5.fsm
(271.2 KiB) Downloaded 1273 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Zero Delay SVF and Allpass based filter.

Postby Tepeix » Tue Aug 15, 2023 11:54 am

Reading again, i think i understand more what you said Martin.

I was watching the frequency response, phase, thinking that a ZDF might have the exact same..
But they could also be the same with a non ZDF ?
Where the real attribute of ZDF is to make possible fast modulation, and also stay stable at low frequency ?

Normally the allpass substitution, (but i'm not always sure what i do is a legit one) would do this.
But using a feedback is maybe breaking this rule..
Yet, with some adjustment, the feedback will not cause much problem, but the difficulty become to get the same frequency response with allpass..

Yep there's also another way but i don't know how much legit..
Where the resonance is just an added bandpass... But would it really be the same ?..
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Next

Return to DSP

Who is online

Users browsing this forum: No registered users and 9 guests