Low/High Pass Filter (Audio)

ciatog used Ask the Experts™
I was wondering if someone has a software implementation of a low and high pass filter for audio processing. My search results brought up a basic low pass but no high pass implementations.

Although any implementation would be helpful I would be particularly happy with an implementation in Objective C using the AVAudioRecorder class

Note: current low pass implementation I've found: http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/

Thanks for you help
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
mccarlIT Business Systems Analyst / Software Developer
Top Expert 2015
Generally when thinking about this sort of problem, I think about using convolution to do the filtering. I have zero experience with Obj-C, etc so I can't help you with your code, but this may at least be a start. Take a look at http://www.dspguide.com/ch6/1.htm which describes the process and some pseudocode and gives hints as to what a low-pass and high-pass filter kernel might looks like.

I realise that this response is rather vague but I hope that at least it may give you a direction start looking in.
If you have the code for a low-pass, you can convert add a step to right-shift the frequency response to either a band-pass filter, or a high-pass filter. (If you shift it far enough to the right so that the max low-pass frequency now becomes the max high pass frequency (i.e., PI), then the band-pass is actually a high-pass filter.)

what about

1-lowpass = highpass
if you know how filters work (like FIR, IIR, ...) then you know how to implement a simple HP or LP Filter.
if you need code examples on this topic the soft archive of http://www.musicdsp.org will be a good help.

check: http://www.musicdsp.org/archive.php?classid=3


Neither comment fully answered my question but each was helpful in giving me ideas and links to other resources so I'm splitting the points amongst everyone for their assistance.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial