This is an old revision of the document!
Click here to return to the Filters page
The General (2nd-Order / Index Selectable) block provides a wide variety of 2nd-order filter algorithms. This block extends the functionality of the General (2nd-Order / Lookup) filter with an enhanced graphical filter design tool. In addition, each of this filter's response curves can be designed independently, allowing you to use complex filter configurations to match your desired system response.
This filter provides:
This block is implemented as a biquad filter that has multiple sets of coefficients stored in tables on the DSP. See General 2nd-Order Filters (in Algorithm Information) for details about the biquad filter design techniques used for this block.
Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Input | decimal - audio | Input to the filter |
Pin 1: Filter Select Index | decimal - audio | Index of the selected frequency response curve |
Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Output | decimal - audio | The filtered output |
NOTE:
The selection input should be a 28.0 format integer value between 0 and the number of curves. For example if your filter has 6 curves, the selection input value should be a 28.0 integer value from 0 to 5.
To open the Filter Control Window, Click the icon button:
GUI Control Name | Default Value | Range | Function Description |
---|---|---|---|
icon button | - | - | Opens the Filter Control Window |
Select Filter by Filter Number | 0 | 0-99 | Selects a filter response curve by filter number selected |
Frequency | 100Hz | 0-96KHz | Set the cutoff frequency of the filter |
Boost | 10 | -150 to 30dB | Set the boost value for a particular filter curve |
Q factor | 1.41 | 0.05 to 15 | Set the Q factor |
Ripple | 0.1 | 0.1 to 5 | Set the Ripple factor for particular filter type(this control is not enabled for all filter types) |
Gain | 6 | -96dB to 10dB | Set the Gain for a particular filter response curve. |
Graph | - | - | The filter response curves in the graph can be dragged to suitably change the filter characteristics |
Filter Type | Peaking(0) | 0-13 | Select the type of filter |
Filter Sub-type | 0 | 0-4 | The “Sub Type” section is only available for the First Order filter type. In first order mode, you have the flexibility of choosing between two cascaded first order filters in a configuration of Low - Low, Low - High, High - Low, or High - High combinations. The “Active 1” and “Active 2” check boxes also apply to First Order filters only, and allow you to independently enable or disable either of the two first order filters. |
Load All | - | - | The ISF form also has a load all button. On clicking the Load all button the filter types of all added filters is changed to IIR Coefficient and enables loading of filter coefficient for all filters from a single text file containing the coefficients for all filters. |
Opacity | - | - | The “Opacity” control sets the transparency value of the control window |
Slew | 12 | 0-46/ 0-100 | ADAU144x/ADAU176x supports upto 46 slew points.The “Slew Points” control sets how many transition points the algorithm uses to transition from one selected filter curve to another, increasing the number of points will provide smoother transitions |
Bypass | 0 | 0 or 1 | The “Bypass” check box disables the filter when checked |
View | - | - | The “View” section only applies for the First Order filter type, this tool allows you to manage each first order filter and control its settings graphically. Refer to the Example for more details |
You can add additional filter curves by clicking the Add Filter button. To remove a filter, select the filter in the graph or clicking its index in the Filter column and press the Remove Filter button.
Coefficients can be loaded for all added filters using the load all button which opens the choose file dialogue where the file containing all coefficients can be loaded as shown in the figure. Coefficients file is expected as a text file containing the biquad coefficients in the following order.
When the filter type chosen is IIR, coefficients for that particular filter can be chosen by clicking the load button which opens a choose file dialogue where the file containing all coefficients can be loaded as shown in the figure.
GUI Control Name | Compiler Name | Function Description |
---|---|---|
B2 | B2 | Bi-quad coefficient of the selected filter response curve |
B1 | B1 | Bi-quad coefficient of the selected filter response curve |
B0 | B0 | Bi-quad coefficient of the selected filter response curve |
A2 | A2 | Bi-quad coefficient of the selected filter response curve |
A1 | A1 | Bi-quad coefficient of the selected filter response curve |
In this example, ISF1 and ISF2 are the names of the two consecutive blocks on Figure c. Both blocks contain four filters, and are set to the “zeroth” index filter, curve 0, selected by the DC input in “28.0” format. (Other formats cannot be used for selection). The ISF1 window is shown below. The cascaded Transfer Function is represented at the bottom. A different filter response curve can be selected by changing the value of the DC input block to corresponding filter index.
Using cascaded Index Selectable Filters (ISF) as in the above example, it is possible to simulate complex responses like the Fletcher & Manson psychoacoustic contours of loudness.