This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderslew [29 Nov 2016 11:16] – Mazher Khan | resources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderslew [09 Mar 2018 08:12] (current) – Prasad Kamath | ||
---|---|---|---|
Line 5: | Line 5: | ||
{{: | {{: | ||
- | The General (2nd-Order) | + | The General (2nd-Order) |
+ | \\ | ||
+ | < | ||
+ | \\ | ||
+ | < | ||
+ | \\ | ||
+ | < | ||
+ | \\ | ||
+ | |||
+ | The above slewing function implements RC slewing. The parameter < | ||
+ | |||
+ | **To open the filter control window, click on the icon button:** | ||
+ | Select the desired filter type from the drop-down combo-box list. The filter controls and the icon button image will change to reflect the selected filter type.\\ | ||
+ | \\ | ||
+ | {{{{: | ||
+ | \\ | ||
+ | |||
+ | =====Configuration===== | ||
+ | |||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Enable/ | ||
+ | |Phase |In-Phase|True/ | ||
+ | |Frequency |1000 Hz|0 - 96k Hz|Center frequency of the filter| | ||
+ | |Slew|0s|0 - 1 seconds|Set the time to slew from one set of coefficients to another.| | ||
+ | \\ | ||
- | * The available filter types are: | + | This block gives access to a wide variety of 2nd-order (biquad)filter algorithms. The blend factor can be entered(0-1) or changed using the slider. The Slew time can be entered in seconds (0-1) to slew from the initial blend factor to the target value. |
+ | The available filter types are: | ||
* Parametric | * Parametric | ||
* Shelving | * Shelving | ||
Line 17: | Line 42: | ||
* Bessel Low-Pass / High-Pass | * Bessel Low-Pass / High-Pass | ||
* Tone Control | * Tone Control | ||
- | * [[resources: | + | * IIR Coefficient (direct coefficient entry) |
* 1st-Order Low-Pass / High-Pass | * 1st-Order Low-Pass / High-Pass | ||
* All-pass | * All-pass | ||
Line 24: | Line 49: | ||
* Chebyshev Low-Pass / High-Pass | * Chebyshev Low-Pass / High-Pass | ||
- | The slewing functionality is added for smooth transition from one set of filter coefficients to another when the filter | + | ====Shelving==== |
- | The slew time can be entered in the GUI slew Text box, or open the filter | + | {{ : |
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Shelf type|Low Shelf|Low Shelf/High Shelf|Shelving type for the filter| | ||
+ | |Frequency|1000Hz|0-96kHz|Cut off frequency of the filter| | ||
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
+ | |Q|1.41|0-16|Q Factor for filter calculations| | ||
+ | |Slope|1|0-2|Slope| | ||
+ | \\ | ||
+ | ---- | ||
- | **To open the filter control window, click on the icon button:** | + | ====General==== |
- | Select the desired filter type from the drop-down combo-box list. The filter controls and the icon button image will change to reflect the selected filter type.\\ | + | {{ : |
- | \\ | + | ^GUI Control Name^Default Value^Range^Function Description^ |
- | {{{{: | + | |Type|Low Pass Filter|Low Pass/High Pass/ |
- | \\ | + | |Frequency|1000Hz|0-96kHz |Cut off frequency of the filter| |
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
+ | |Q|1.41|0-16|Q Factor for filter calculations| | ||
- | -------------------------------------------------------------------------------- | + | ---- |
- | This block' | + | ====Butterworth/Bessel==== |
- | \\ | + | {{ : |
- | < | + | ^GUI Control Name^Default Value^Range^Function Description^ |
- | \\ | + | |Type|Bessel Low Pass|Bessel Low Pass/Bessel High Pass/ |
+ | |Frequency|1000Hz|0-96kHz|Cut off frequency of the filter| | ||
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
- | common variables: | + | ---- |
- | * < | + | |
- | * < | + | |
- | \\ | + | |
- | {{general2ndpic4.png}}\\ | + | |
- | Note that the b0 and b2 coefficients for the high pass filter below are inverted from what is stored in RAM. The correct equations for b0, b1, and b2 for a high pass filter are as follows: | + | ====Tone Control==== |
- | b0 = -(1 + cos(ω0)) * gainLinear / 2\\ | + | {{ : |
- | b1 = -(1 + cos(ω0)) * gainLinear\\ | + | ^GUI Control Name^Default Value^Range^Function Description^ |
- | b2 = -(1 + cos(ω0)) * gainLinear / 2\\ | + | |Treble Frequency|1000Hz|0-96kHz|Treble Cut off frequency of the filter| |
+ | |Treble Gain|0dB|-15 - 15 dB|Treble dB gain of the filter coefficients| | ||
+ | |Bass Frequency|1000Hz|0-96kHz|Bass Cut off frequency of the filter| | ||
+ | |Bass Gain|0dB|-15 - 15 dB|Bass dB gain of the filter coefficients| | ||
- | {{general2ndpic5.png}}\\ | + | ---- |
- | **Note that the minus signs on b0 and b2 values are erroneous | + | ====IIR Coefficient==== |
+ | {{ : | ||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |b0|1|-100 to 100|B0 coefficient for the filter| | ||
+ | |b1|0|-100 to 100|B1 coefficient for the filter| | ||
+ | |b2|0|-100 to 100|B2 coefficient | ||
+ | |a1|0|-100 to 100|A1 coefficient for the filter| | ||
+ | |a2|0|-100 to 100|A2 coefficient for the filter| | ||
+ | ---- | ||
+ | |||
+ | ====First Order Filters==== | ||
+ | {{ : | ||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Filter Frequency|1000Hz|0-96kHz|Cut off frequency of the filter| | ||
+ | |Active| Checked| Checked/ | ||
+ | |Type|High for 1st filter,Low - for second filter|Low/ | ||
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
+ | |Q|1.41|0-16|Q Factor for filter calculations| | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====All Pass, | ||
+ | {{ : | ||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Frequency|1000Hz|0-96kHz|Cut off frequency of the filter| | ||
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
+ | |Q|1.41|0-16|Q Factor for filter calculations| | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====Chebyshev==== | ||
+ | {{ : | ||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Frequency|1000Hz|0-96kHz|Cut off frequency of the filter| | ||
+ | |Gain|0dB|-15 - 15 dB|dB gain of the filter coefficients| | ||
+ | |Ripple|0.1|0-10|Ripple Factor for filter calculations| | ||
+ | |||
+ | ---- | ||
- | {{general2ndpic6.png}}\\ | ||
\\ | \\ | ||
- | < | ||
- | \\ | ||
- | < | ||
- | \\ | ||
- | < | ||
\\ | \\ | ||
+ | ===== DSP Parameter Information ===== | ||
- | The above slewing function implements RC slewing. The parameter | + | ^GUI Control Name^Compiler Name^Function Description^ |
- | \\ | + | |Targ_B2_|<fc #008000>EQS300MultiSpSlewAlg</fc><fc # |
+ | |Targ_B1_|< | ||
+ | |Targ_B0_|< | ||
+ | |Targ_A2_|< | ||
+ | |Targ_A1_|< | ||
+ | |lambda_|< | ||
- | For all of the above filters, the coefficients are divided by a0, normalizing them and making a0 = 1 so that only 5 coefficients must be stored. In the actual implementation on the DSP, when the coefficients are stored in parameter RAM, a1 and a2 need to be inverted. This is done automatically, | ||
- | The Q is shown with the value adjusted | + | \\ Here, |
+ | * <fc #008000> Green</ | ||
+ | * <fc #ff0000> Red</ | ||
+ | * <fc #000080> Blue</fc> - Parameter Name | ||
+ | * <fc #800000> Brown</fc> - Stage number | ||
+ | ==== Supported ICs ==== | ||
+ | - ADAU145x | ||
+ | |||
+ | \\ | ||
**NOTE: Due to fixed point operations, the filter coefficients do not slew exactly in the set slew time. | **NOTE: Due to fixed point operations, the filter coefficients do not slew exactly in the set slew time. | ||
** | ** | ||