Wiki

This version (08 Aug 2018 07:15) was approved by Venkatesan Krishnamoorthy.The Previously approved version (29 Nov 2016 11:16) is available.Diff

General Eq (2nd order) Slew -(ADAU145x)

Click here to return to the Filters page


The General (2nd-Order) filter is a variant of a second order bi quad filter which enables smooth transition of the filter parameters when filter parameters are changed, this is done by slewing from the current filter parameters(coefficients) to the one being set. The slewing takes place approximately in the time set by the user in the GUI. The slew time can be entered in the GUI slew Text box, or open the filter control window by clicking on the icon button and enter the slew time in the slew text box or by using the slew slider. The slew time range is limited between (0 to 1 second).
Slew function:
lambda= e^{-1/{timeconstant*F_s}}
Current Coefficient= Current Coffcicient* lambda + Target Coefficient * (1-lambda)

The above slewing function implements RC slewing. The parameter lambda is calculated based on the slewing time constant. The computations for slewing of filter coefficients is done on the DSP. The slew computation is always performed in single precision.

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 NameDefault ValueRangeFunction Description
Enable/Bypass Enabled True/False Enabling or disabling of filter. On bypass, the input signal is passed through without any processing.
Phase In-PhaseTrue/FalseEnabling the button, will invert the filter phase.
Frequency 1000 Hz0 - 96k HzCenter frequency of the filter
Slew0s0 - 1 secondsSet the time to slew from one set of coefficients to another.


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
  • Shelving
  • General High-Pass
  • General Low-Pass
  • General Band-Pass
  • General Band-Stop
  • Butterworth Low-Pass / High-Pass
  • Bessel Low-Pass / High-Pass
  • Tone Control
  • IIR Coefficient (direct coefficient entry)
  • 1st-Order Low-Pass / High-Pass
  • All-pass
  • Peaking
  • Notch
  • Chebyshev Low-Pass / High-Pass

Shelving

GUI Control NameDefault ValueRangeFunction Description
Shelf typeLow ShelfLow Shelf/High ShelfShelving type for the filter
Frequency1000Hz0-96kHzCut off frequency of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients
Q1.410-16Q Factor for filter calculations
Slope10-2Slope



General

GUI Control NameDefault ValueRangeFunction Description
TypeLow Pass FilterLow Pass/High Pass/BandPass/BandStopGeneral filter type
Frequency1000Hz0-96kHz Cut off frequency of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients
Q1.410-16Q Factor for filter calculations

Butterworth/Bessel

GUI Control NameDefault ValueRangeFunction Description
TypeBessel Low PassBessel Low Pass/Bessel High Pass/Butterworth Low Pass/Butterworth High PassFilter type
Frequency1000Hz0-96kHzCut off frequency of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients

Tone Control

GUI Control NameDefault ValueRangeFunction Description
Treble Frequency1000Hz0-96kHzTreble Cut off frequency of the filter
Treble Gain0dB-15 - 15 dBTreble dB gain of the filter coefficients
Bass Frequency1000Hz0-96kHzBass Cut off frequency of the filter
Bass Gain0dB-15 - 15 dBBass dB gain of the filter coefficients

IIR Coefficient

GUI Control NameDefault ValueRangeFunction Description
b01-100 to 100B0 coefficient for the filter
b10-100 to 100B1 coefficient for the filter
b20-100 to 100B2 coefficient for the filter
a10-100 to 100A1 coefficient for the filter
a20-100 to 100A2 coefficient for the filter

First Order Filters

GUI Control NameDefault ValueRangeFunction Description
Filter Frequency1000Hz0-96kHzCut off frequency of the filter
Active Checked Checked/UncheckedIndicates whether the filter is active
TypeHigh for 1st filter,Low - for second filterLow/High/All passType of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients
Q1.410-16Q Factor for filter calculations

All Pass,Peaking,Notch

GUI Control NameDefault ValueRangeFunction Description
Frequency1000Hz0-96kHzCut off frequency of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients
Q1.410-16Q Factor for filter calculations

Chebyshev

GUI Control NameDefault ValueRangeFunction Description
Frequency1000Hz0-96kHzCut off frequency of the filter
Gain0dB-15 - 15 dBdB gain of the filter coefficients
Ripple0.10-10Ripple Factor for filter calculations



DSP Parameter Information

GUI Control NameCompiler NameFunction Description
Targ_B2_EQS300MultiSpSlewAlg1Targ_B2_1Bi-quad filter coefficient B2 for filter 1
Targ_B1_EQS300MultiSpSlewAlg1Targ_B1_1Bi-quad filter coefficient B1 for filter 1
Targ_B0_EQS300MultiSpSlewAlg1Targ_B0_1Bi-quad filter coefficient B0 for filter 1
Targ_A2_EQS300MultiSpSlewAlg1Targ_A2_1Bi-quad filter coefficient A2 for filter 1
Targ_A1_EQS300MultiSpSlewAlg1Targ_A1_1Bi-quad filter coefficient A1 for filter 1
lambda_EQS300MultiSpSlewAlg1lambda_1Bi-quad Slewing parameter lambda


Here,

  • Green - Algorithm Name
  • Red - Instance Number (Changes for each instance)
  • Blue - Parameter Name
  • Brown - Stage number

Supported ICs

  1. ADAU145x


NOTE: Due to fixed point operations, the filter coefficients do not slew exactly in the set slew time.

resources/tools-software/sigmastudio/toolbox/filters/generaleq2ndorderslew.txt · Last modified: 09 Mar 2018 08:12 by Prasad Kamath