This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
resources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderwithcoeffcalc [26 Apr 2016 15:13] – Mazher Khan | resources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderwithcoeffcalc [23 Aug 2016 11:44] – Venkatesan Krishnamoorthy | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[resources: | [[resources: | ||
------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ||
- | + | This algorithm | |
- | {{ coeffcalc.jpg}} | + | |
- | + | ||
- | The General (2nd-Order) block gives access to a wide variety of 2nd-order (biquad)filter algorithms. | + | |
- | + | ||
- | + | ||
- | * 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 | + | |
- | * All-pass | + | |
- | * Peaking | + | |
- | * Notch | + | |
- | * Chebyshev Low-Pass / High-Pass | + | |
- | + | ||
- | The coefficient calculation for these filters are done in the SigmaDSP itself. The coefficient calculation is done in the background when there is no processing happening. | + | |
- | + | ||
- | **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.\\ | + | |
- | \\ | + | |
- | {{coeffcalc2.jpg}}\\ | + | |
- | \\ | + | |
- | + | ||
- | -------------------------------------------------------------------------------- | + | |
- | + | ||
- | This block' | + | |
- | \\ | + | |
- | < | + | |
- | \\ | + | |
- | + | ||
- | common variables: | + | |
- | * < | + | |
- | * < | + | |
- | \\ | + | |
- | {{generalfilters.jpg}}\\ | + | |
- | \\ | + | |
- | + | ||
- | \\ | + | |
- | 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:\\ | + | |
- | b0 = -(1 + cos(ω0)) * gainLinear / 2\\ | + | |
- | b1 = -(1 + cos(ω0)) * gainLinear\\ | + | |
- | b2 = -(1 + cos(ω0)) * gainLinear / 2\\ | + | |
- | + | ||
- | \\ | + | |
- | + | ||
- | ===GUI Control=== | + | |
- | ^GUI Control Name^Default Value^Range^Function Description^ | + | |
- | |Filter Type |Lowpass|LowPass/ | + | |
- | |Frequency|1000 Hz|0-96000 Hz|The cut off frequency of the filter| | + | |
- | |Gain|0 dB| -15 to 15| Filter Gain| | + | |
- | |Q Factor|0| 0 to 16| Q Factor | + | |
- | |Enable|1 | 0 t0 1| Enable or disable filter| | + | |
- | |Phase Shift|0| 0 to 1| Phase shift by 180 deg| | + | |
- | ===DSP parameter Information=== | + | |
- | ^GUI Control Name^Compiler Name^Function Description^ | + | |
- | |Frequency|FREQ_DSP_CALC0_ _|The cut off frequency | + | |
- | |Gain|GAIN_DSP_CALC0_ _|Filter Gain| | + | |
- | |Q Factor|Q_DSP_CALC0_ _|Q Factor of the filter| | + | |
- | |Filter Type|FILTER_TYPE0_ _|Type of the filter| | + | |
- | |NA|INVERT__|Negate the Coefficients corresponding to the input | | + | |
- | |NA|ONE_BY_FS_DSP_CALC0_ _|1/ Sample Rate| | + | |
- | |NA|ADDRESS_DSP_CALC0_ _|Starting Address of the filter coefficients.| | + | |
- | |NA|MEM_SELECTION_DSP_CALC0_ _|Memory section the filter coefficients are located (DM0/DM1) | | + |