|
OpenShot Library | OpenShotAudio
0.2.2
|
Multi-mode filter based on the Moog ladder filter. More...
#include <juce_LadderFilter.h>
Public Types | |
| enum class | Mode { LPF12 , HPF12 , LPF24 , HPF24 } |
Public Member Functions | |
| LadderFilter () | |
| Creates an uninitialised filter. More... | |
| void | setEnabled (bool newValue) noexcept |
| Enables or disables the filter. More... | |
| void | setMode (Mode newValue) noexcept |
| Sets filter mode. | |
| void | prepare (const juce::dsp::ProcessSpec &spec) |
| Initialises the filter. | |
| size_t | getNumChannels () const noexcept |
| Returns the current number of channels. | |
| void | reset () noexcept |
| Resets the internal state variables of the filter. | |
| void | setCutoffFrequencyHz (Type newValue) noexcept |
| Sets the cutoff frequency of the filter. More... | |
| void | setResonance (Type newValue) noexcept |
| Sets the resonance of the filter. More... | |
| void | setDrive (Type newValue) noexcept |
| Sets the amount of saturation in the filter. More... | |
| template<typename ProcessContext > | |
| void | process (const ProcessContext &context) noexcept |
Protected Member Functions | |
| Type | processSample (Type inputValue, size_t channelToUse) noexcept |
| void | updateSmoothers () noexcept |
Multi-mode filter based on the Moog ladder filter.
Definition at line 42 of file juce_LadderFilter.h.
| juce::dsp::LadderFilter< Type >::LadderFilter |
Creates an uninitialised filter.
Call prepare() before first use.
Definition at line 34 of file juce_LadderFilter.cpp.
References juce::dsp::LadderFilter< Type >::setDrive(), juce::dsp::LadderFilter< Type >::setMode(), and juce::dsp::LadderFilter< Type >::setResonance().
|
inlinenoexcept |
Enables or disables the filter.
If disabled it will simply pass through the input signal.
Definition at line 58 of file juce_LadderFilter.h.
|
noexcept |
Sets the cutoff frequency of the filter.
| newValue | cutoff frequency in Hz |
Definition at line 87 of file juce_LadderFilter.cpp.
|
noexcept |
Sets the resonance of the filter.
| newValue | a value between 0 and 1; higher values increase the resonance and can result in self oscillation! |
Definition at line 96 of file juce_LadderFilter.cpp.
Referenced by juce::dsp::LadderFilter< Type >::LadderFilter().
|
noexcept |
Sets the amount of saturation in the filter.
| newValue | saturation amount; it can be any number greater than or equal to one. Higher values result in more distortion. |
Definition at line 105 of file juce_LadderFilter.cpp.
Referenced by juce::dsp::LadderFilter< Type >::LadderFilter().