OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_LadderFilter.h>
Public Types | |
enum class | Mode { LPF12 , HPF12 , LPF24 , HPF24 } |
Public Member Functions | |
LadderFilter () | |
void | setEnabled (bool newValue) noexcept |
void | setMode (Mode newValue) noexcept |
void | prepare (const juce::dsp::ProcessSpec &spec) |
size_t | getNumChannels () const noexcept |
void | reset () noexcept |
void | setCutoffFrequencyHz (Type newValue) noexcept |
void | setResonance (Type newValue) noexcept |
void | setDrive (Type newValue) noexcept |
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 38 of file juce_LadderFilter.h.
Definition at line 41 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.
|
inlinenoexcept |
Returns the current number of channels.
Definition at line 63 of file juce_LadderFilter.h.
void juce::dsp::LadderFilter< Type >::prepare | ( | const juce::dsp::ProcessSpec & | spec | ) |
Initialises the filter.
Definition at line 67 of file juce_LadderFilter.cpp.
|
inlinenoexcept |
Definition at line 82 of file juce_LadderFilter.h.
|
protectednoexcept |
Definition at line 117 of file juce_LadderFilter.cpp.
|
noexcept |
Resets the internal state variables of the filter.
Definition at line 76 of file juce_LadderFilter.cpp.
|
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 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().
|
inlinenoexcept |
Enables or disables the filter. If disabled it will simply pass through the input signal.
Definition at line 54 of file juce_LadderFilter.h.
|
noexcept |
Sets filter mode.
Definition at line 45 of file juce_LadderFilter.cpp.
Referenced by juce::dsp::LadderFilter< Type >::LadderFilter().
|
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().
|
protectednoexcept |
Definition at line 145 of file juce_LadderFilter.cpp.