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

Fast Slope HPF Filter

DSP related issues, mathematics, processing and techniques

Fast Slope HPF Filter

Postby Rocko » Mon Aug 03, 2015 2:21 pm

Hi,

I'm looking into 'fast slope' filters for an HPF implementation and came across 'Elliptic Filter':
https://en.wikipedia.org/wiki/Elliptic_filter

Is anyone experienced with this type of filter on FlowStone?
Can it be implemented in FlowStone (static parameters)?
Can it be implemented in FlowStone with dynamic parameters (On The Fly changes) ?

Appreciated,
Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Fast Slope HPF Filter

Postby martinvicanek » Mon Aug 03, 2015 6:42 pm

You can do elliptic filters in FS, no problem. You can use this excellent online tool to get your filter coefficients: http://cnx.org/contents/8c10bada-99b8-4 ... Filter-Des
I'd recommend to implement the filter as a cascade of biquads. Search this forum and FS Guru for a recipe.

Once you have the coefficients for a certain filter specification you can transform to another cutoff frequency. The math is a bit tedious and it will be heavy on CPU if done at sample rate. :mrgreen:

However, note that steep filters tend to ring if you feed them with percussive content.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Fast Slope HPF Filter

Postby martinvicanek » Mon Aug 03, 2015 7:08 pm

Here is a tunable 12th order elliptic lowpass as an example:
EllipticFilter.png
EllipticFilter.png (31.93 KiB) Viewed 41420 times
Attachments
EllipticFilter.fsm
(14.24 KiB) Downloaded 1704 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Fast Slope HPF Filter

Postby Rocko » Wed Aug 05, 2015 3:24 pm

Hi,

Thanks for sharing. It is interesting. :D

I had reached the page of the tool, it says 1,140 USD for the tool itself :cry:
What does the tool do? Does it provide the a and b coefficient set, per filter, which I can then copy into the 'text' boxes of the module you had sent?
I'm interested in HPF, not LPF. Can I calculate the biquads (a,b) for HPF with this LabView tool?

Could I use MATLAB (more available) to reach the same biquads to copy paste into the module you had sent?

Thanks for sharing the info !

Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Fast Slope HPF Filter

Postby tulamide » Wed Aug 05, 2015 4:38 pm

Rocko wrote:Hi,

Thanks for sharing. It is interesting. :D

I had reached the page of the tool, it says 1,140 USD for the tool itself :cry:
What does the tool do? Does it provide the a and b coefficient set, per filter, which I can then copy into the 'text' boxes of the module you had sent?
I'm interested in HPF, not LPF. Can I calculate the biquads (a,b) for HPF with this LabView tool?

Could I use MATLAB (more available) to reach the same biquads to copy paste into the module you had sent?

Thanks for sharing the info !

Rocko


I might be wrong, but from my reading of the page it seems the software used to create the online tool is sold, not the online tool itself. The online tool is a downloadable plugin for your browser, that you need to install to have access to it. At least that's how I understood it.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Fast Slope HPF Filter

Postby martinvicanek » Wed Aug 05, 2015 7:57 pm

You are right, tulamide, the link takes you to a free online tool (give it some time to load). Other free filter design tools that include elliptic filters are:
1. IIR Filter Designer from Iowa Hills Software
2. Octave (the free Matlab, so to say), available also via browser interface here

Enter the following in the Octave console:
Code: Select all
format long;   // for double precision
[B,A] = ellip(8,0.15,60,0.5,"high");   // calculates transfer funcion filter coefficients
tf2sos(B,A);   // breaks it down into biquad sections

You can copy and paste the coefficients from the cnx site into the textboxes in my schematic. The other tools have a different output format, you have to unscramble the coefficients before pasting.
I am attaching a highpass filter example.
Attachments
EllipticHighpassFilter.fsm
(13.87 KiB) Downloaded 1687 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Fast Slope HPF Filter

Postby Rocko » Thu Aug 06, 2015 3:19 am

Hi,

I must have missed something, thanks for the help and assistance.

Appreciated,
Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Fast Slope HPF Filter

Postby Rocko » Thu Aug 06, 2015 9:29 am

BTW -

How would you compare Octave to Matlab as an audio/filters playground?
It is a hobby, not profession, so existing libraries and examples are a big advantage since I can see what is there and play with it some.

Any comment is appreciated.

Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Fast Slope HPF Filter

Postby stw » Thu Aug 06, 2015 11:57 am

martinvicanek wrote:Enter the following in the Octave console:
Code: Select all
format long;   // for double precision
[B,A] = ellip(8,0.15,60,0.5,"high");   // calculates transfer funcion filter coefficients
tf2sos(B,A);   // breaks it down into biquad sections


Hi Martin,
...as usual...thanks for sharing. One remark:
If someone actually wants to do it in Octave one seems to need to install
The control package and The signal package
and just for completeness: How To Install Packages
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Fast Slope HPF Filter

Postby martinvicanek » Thu Aug 06, 2015 6:47 pm

stw wrote:If someone actually wants to do it in Octave one seems to need to install
The control package and The signal package
and just for completeness: How To Install Packages

If you don't want to install stuff on your PC then you can access Octave online via browser interface here. Apparently the relevant packages are already loaded. :)
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Next

Return to DSP

Who is online

Users browsing this forum: No registered users and 56 guests