Structure used for the state variable filter parameters. More...
#include <juce_StateVariableFilter.h>
Public Types | |
using | Ptr = ReferenceCountedObjectPtr< Parameters > |
The Coefficients structure is ref-counted, so this is a handy type that can be used as a pointer to one. More... | |
enum | Type { Type::lowPass, Type::bandPass, Type::highPass } |
Public Member Functions | |
Parameters ()=default | |
Parameters (const Parameters &o) | |
void | decReferenceCount () noexcept |
Decreases the object's reference count. More... | |
bool | decReferenceCountWithoutDeleting () noexcept |
Decreases the object's reference count. More... | |
int | getReferenceCount () const noexcept |
Returns the object's current reference count. More... | |
void | incReferenceCount () noexcept |
Increments the object's reference count. More... | |
Parameters & | operator= (const Parameters &o) noexcept |
void | setCutOffFrequency (double sampleRate, NumericType frequency, NumericType resonance=static_cast< NumericType >(1.0/MathConstants< double >::sqrt2)) noexcept |
Sets the cutoff frequency and resonance of the IIR filter. More... | |
Public Attributes | |
NumericType | g = static_cast<NumericType> (std::tan (MathConstants<double>::pi * 200.0 / 44100.0)) |
NumericType | h = static_cast<NumericType> (1.0 / (1.0 + R2 * g + g * g)) |
NumericType | R2 = static_cast<NumericType> (MathConstants<double>::sqrt2) |
Type | type = Type::lowPass |
The type of the IIR filter. More... | |
Protected Member Functions | |
void | resetReferenceCount () noexcept |
Resets the reference count to zero without deleting the object. More... | |
Structure used for the state variable filter parameters.
{DSP}
using juce::dsp::StateVariableFilter::Parameters< NumericType >::Ptr = ReferenceCountedObjectPtr<Parameters> |
The Coefficients structure is ref-counted, so this is a handy type that can be used as a pointer to one.
|
strong |
|
default |
|
inline |
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
References jassert.
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.
References jassert.
|
inlinenoexceptinherited |
Returns the object's current reference count.
|
inlinenoexceptinherited |
Increments the object's reference count.
This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.
|
inlinenoexcept |
|
inlineprotectednoexceptinherited |
Resets the reference count to zero without deleting the object.
You should probably never need to use this!
|
inlinenoexcept |
NumericType juce::dsp::StateVariableFilter::Parameters< NumericType >::g = static_cast<NumericType> (std::tan (MathConstants<double>::pi * 200.0 / 44100.0)) |
NumericType juce::dsp::StateVariableFilter::Parameters< NumericType >::h = static_cast<NumericType> (1.0 / (1.0 + R2 * g + g * g)) |
NumericType juce::dsp::StateVariableFilter::Parameters< NumericType >::R2 = static_cast<NumericType> (MathConstants<double>::sqrt2) |
Type juce::dsp::StateVariableFilter::Parameters< NumericType >::type = Type::lowPass |
The type of the IIR filter.