lowpass_c.htm
来自「低通滤波器的源程序,基于C语言,可用于算法仿真,非常有用.」· HTM 代码 · 共 25 行
HTM
25 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://www.oxbad.com/DSP/maindoc/arithmetic_source/c/LOWPASS.C -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY><PRE>/* lowpass.c - lowpass reverberator with feedback filter G(z) */
double tap(), can();
void cdelay();
double lowpass(D, w, p, M, a, b, v, x)
double *w, **p, *a, *b, *v, x; /* \(v\) = state vector for \(G(z)\) */
int D; /* \(a,b,v\) are \((M+1)\)-dimensional */
{
double y, sD;
sD = tap(D, w, *p, D); /* delay output is \(G(z)\) input */
y = x + can(M, a, M, b, v, sD); /* reverb output */
**p = y; /* delay input */
cdelay(D, w, p); /* update delay line */
return y;
}
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?