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

The Zip Filter (experimental and improvable)

DSP related issues, mathematics, processing and techniques

The Zip Filter (experimental and improvable)

Postby Tepeix » Mon Jul 24, 2023 6:51 pm

Here's what i call the Low Pass Zip Filter.
Don't know if this structure already exist ? ChatGpt don't know it, and i didn't find equivalence.

It seams to stay stable. But the way i calculate coefficient is very special...

Any idea of how i could make it more classical or precise ??)

One drawback is that the slope would decrease after 1/4 nyquiest frequency.
For now the Q control is a little experimental.. It might be adjusted according to the frequency..

So coefficient of the first order is simply sin(freq/SR*pi).
Then each coefficient is derivated from the precedent in a very special and complex to describe way...)

Héhé any idea to improve this strange thing ?)
Attachments
The ZipFilter.fsm
(101.89 KiB) Downloaded 1092 times
Zip structure.png
Zip structure.png (8.69 KiB) Viewed 18497 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: The Zip Filter (experimental and improvable)

Postby Tepeix » Tue Jul 25, 2023 1:23 pm

A little upgrade.

The big problem was a bug in the Q system.
When using a graph and multiple module instead of a single code, the graph could introduce a delay of one sample somewhere, then not represent the true reality; and it was the case.
But without this error i never get the idea to introduce a delay here, which i find cool, but maybe not classic,
as the Q will only have effect when there's some cutoff attenuation.. Which depend on sample rate..

Also i fix a little the way coefficient are calculated, just adding more curve in the way they interpolate between x2,x1,or another value, it help to get the same slope when at different cutoff.
So now the filter reach is slope at 1/2 nyquiest. And the Q seams more constant but not completely..
Attachments
The ZipFilter v2.fsm
(145.9 KiB) Downloaded 1119 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: The Zip Filter (experimental and improvable)

Postby Tepeix » Fri Jul 28, 2023 1:25 pm

I find a better way to calculate the coefficients. Yet it's still strange.

So each coefficient is again derived from the next one in this way:

C1 = ((1-C0)*C0*param)+C0 where param might be choose carefully..

But an adjustment might be made when the cutoff are lower.
The parameter of C1 might slide from 0.59 to 0.99, adding to it (1-C0)^4 * 0.4..
(would maybe be better to adjust all in this way..)

Héhé that's strange, but it works, keeping the slope almost identical when changing cutoff..

I wonder what are the mathematics that make it works ? As i just observe some behaviors without really understanding it...

Then i go for higher order, but i spot a precision problem related to the dnorm value..
When using higher sample rate it begin to blow up at lower cutoff..
That's where i thing about some scaling, to avoid this.. Multiply then redivide before more th... :shock: :?:
But it imply some experiment.. To see how it could be done avoiding dnorm and instability if possible..

Well an experimental and strange way..
Attachments
The ZipFilter v4.fsm
(136.78 KiB) Downloaded 1118 times
Zip structure2.png
Zip structure2.png (11.51 KiB) Viewed 18347 times
Tepeix
 
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 10 guests