Old 09-21-2018, 06:42 AM   #1
nitsuj
Human being with feelings
 
nitsuj's Avatar
 
Join Date: Nov 2017
Posts: 292
Default Linear Phase FIR low pass required

I'm in need of a linear phase FIR low pass for oversampling x2.

I've tried a few existing jsfx libraries (and some forum code) but they either don't work properly when you analyze frequency or they don't null (which they should).

Before I reinvent the wheel, just asking if anyone has a solid one in the public domain?
nitsuj is offline   Reply With Quote
Old 09-21-2018, 08:42 AM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,776
Default

As an example for my FFT experiments, I used a JSFX called "Frequency Splitter" or similar.

I suppose this is a zero phase FIR Filter.

-Michael
mschnell is offline   Reply With Quote
Old 09-23-2018, 12:53 AM   #3
nitsuj
Human being with feelings
 
nitsuj's Avatar
 
Join Date: Nov 2017
Posts: 292
Default

Thanks - I checked it out.

You're right, if you split and output to the same channel you can get it to null so I'm concluding that there's no phase shift - it's linear phase.

I didn't have much luck repurposing the technique but I'll give it another go.
nitsuj is offline   Reply With Quote
Old 09-23-2018, 01:05 AM   #4
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,776
Default

In this forum you will find a thread where I learned about this "splitter" and how to use the jsfx fft and rfft unctions.

OTOH, I am not sure if fft is the way to go for your FIR Filter project.

-Michael
mschnell is offline   Reply With Quote
Old 09-23-2018, 09:50 PM   #5
SaulT
Human being with feelings
 
Join Date: Oct 2013
Location: Seattle, WA
Posts: 876
Default

The 2x code includes a 19-tap halfband filter, which is linear phase. Longer filters can easily be designed.


https://forum.cockos.com/showthread....t=oversampling
SaulT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.