allpass.c

来自「包含有各种各样的数字信号处理经典算法源代码,很有用的.」· C语言 代码 · 共 20 行

C
20
字号
/* allpass.c - allpass reverberator with circular delay line */double tap();void cdelay();double allpass(D, w, p, a, x)                   /* usage: y=allpass(D,w,&p,a,x); */double *w, **p, a, x;                           /* \(p\) is passed by address */int D;{       double y, s0, sD;       sD = tap(D, w, *p, D);                   /* \(D\)th tap delay output */       s0 = x + a * sD;       y  = -a * s0 + sD;                       /* filter output */       **p = s0;                                /* delay input */       cdelay(D, w, p);                         /* update delay line */       return y;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?