You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//| """Construct a low-pass filter with the given parameters.
298
+
//|
299
+
//| `frequency`, called f0 in the cookbook, is the corner frequency in Hz
300
+
//| of the filter.
301
+
//|
302
+
//| `q_factor`, called `Q` in the cookbook. Controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
303
+
//| """
304
+
305
+
enumpassfilter_arg_e { ARG_f0, ARG_Q };
306
+
307
+
// M_PI is not part of the math.h standard and may not be defined
308
+
// And by defining our own we can ensure it uses the correct const format.
//| """Construct a high-pass filter with the given parameters.
339
+
//|
340
+
//| `frequency`, called f0 in the cookbook, is the corner frequency in Hz
341
+
//| of the filter.
342
+
//|
343
+
//| `q_factor`, called `Q` in the cookbook. Controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
//| """Construct a band-pass filter with the given parameters.
367
+
//|
368
+
//| `frequency`, called f0 in the cookbook, is the center frequency in Hz
369
+
//| of the filter.
370
+
//|
371
+
//| `q_factor`, called `Q` in the cookbook. Controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
372
+
//|
373
+
//| The coefficients are scaled such that the filter has a 0dB peak gain.
0 commit comments