Home | History | Annotate | Download | only in dsp

Lines Matching full:frequency

113 static void biquad_bandpass(struct biquad *bq, double frequency, double Q)
116 frequency = max(0.0, frequency);
121 if (frequency > 0 && frequency < 1) {
122 double w0 = M_PI * frequency;
153 static void biquad_lowshelf(struct biquad *bq, double frequency, double db_gain)
156 frequency = max(0.0, min(frequency, 1.0));
160 if (frequency == 1) {
163 } else if (frequency > 0) {
164 double w0 = M_PI * frequency;
182 /* When frequency is 0, the z-transform is 1. */
187 static void biquad_highshelf(struct biquad *bq, double frequency,
191 frequency = max(0.0, min(frequency, 1.0));
195 if (frequency == 1) {
198 } else if (frequency > 0) {
199 double w0 = M_PI * frequency;
217 /* When frequency = 0, the filter is just a gain, A^2. */
222 static void biquad_peaking(struct biquad *bq, double frequency, double Q,
226 frequency = max(0.0, min(frequency, 1.0));
233 if (frequency > 0 && frequency < 1) {
235 double w0 = M_PI * frequency;
255 /* When frequency is 0 or 1, the z-transform is 1. */
260 static void biquad_notch(struct biquad *bq, double frequency, double Q)
263 frequency = max(0.0, min(frequency, 1.0));
268 if (frequency > 0 && frequency < 1) {
270 double w0 = M_PI * frequency;
290 /* When frequency is 0 or 1, the z-transform is 1. */
295 static void biquad_allpass(struct biquad *bq, double frequency, double Q)
298 frequency = max(0.0, min(frequency, 1.0));
303 if (frequency > 0 && frequency < 1) {
305 double w0 = M_PI * frequency;
325 /* When frequency is 0 or 1, the z-transform is 1. */