Re: High Pass Filter example?
Re: High Pass Filter example?
- Subject: Re: High Pass Filter example?
- From: Urs Heckmann <email@hidden>
- Date: Thu, 5 Jun 2003 09:21:13 +0200
Am Donnerstag, 05.06.03, um 06:31 Uhr (Europe/Berlin) schrieb
email@hidden:
Hi,
I'm looking for a basic single pole high pass filter. Does anyone
know the
high pass version of this low pass filter?
inline double LowPassFilter(double input, double inCutoff, double&
ioPrev)
{
ioPrev = (input * (1.0 - inCutoff)) + (ioPrev * inCutoff);
return ioPrev;
}
What about just subtracting the lowpassed signal from the input?
inline double HighPassFilter(double input, double inCutoff, double&
ioPrev)
{
ioPrev = input + inCutoff * (ioPrev - input);
return input - ioPrev;
}
For more sophisticated approaches, check out www.musicdsp.org
Cheers,
;) Urs
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.