|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A processor to handle dry/wet mixing of two audio signals, where the wet signal may have additional latency. More...
#include "juce_DryWetMixer.h"
Public Types | |
| using | MixingRule = DryWetMixingRule |
Public Member Functions | |
| DryWetMixer () | |
| Default constructor. | |
| DryWetMixer (int maximumWetLatencyInSamples) | |
| Constructor. | |
| void | setMixingRule (MixingRule newRule) |
| Sets the mix rule. | |
| void | setWetMixProportion (SampleType newWetMixProportion) |
| Sets the current dry/wet mix proportion, with 0.0 being full dry and 1.0 being fully wet. | |
| void | setWetLatency (SampleType wetLatencyInSamples) |
| Sets the relative latency of the wet signal path compared to the dry signal path, and thus the amount of latency compensation that will be added to the dry samples in this processor. | |
| void | prepare (const ProcessSpec &spec) |
| Initialises the processor. | |
| void | reset () |
| Resets the internal state variables of the processor. | |
| void | pushDrySamples (const AudioBlock< const SampleType > drySamples) |
| Copies the dry path samples into an internal delay line. | |
| void | mixWetSamples (AudioBlock< SampleType > wetSamples) |
| Mixes the supplied wet samples with the latency-compensated dry samples from pushDrySamples. | |
A processor to handle dry/wet mixing of two audio signals, where the wet signal may have additional latency.
Once a DryWetMixer object is configured, push the dry samples using pushDrySamples and mix into the fully wet samples using mixWetSamples.
@tags{DSP}
Definition at line 51 of file juce_DryWetMixer.h.
| using juce::dsp::DryWetMixer< SampleType >::MixingRule = DryWetMixingRule |
Definition at line 55 of file juce_DryWetMixer.h.
| juce::dsp::DryWetMixer< SampleType >::DryWetMixer | ( | ) |
Default constructor.
Definition at line 31 of file juce_DryWetMixer.cpp.
|
explicit |
Constructor.
Definition at line 37 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::mixWetSamples | ( | AudioBlock< SampleType > | wetSamples | ) |
Mixes the supplied wet samples with the latency-compensated dry samples from pushDrySamples.
| wetSamples | Input: The AudioBlock references fully wet samples. Output: The AudioBlock references the wet samples mixed with the latency compensated dry samples. |
Definition at line 127 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
Definition at line 72 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::pushDrySamples | ( | const AudioBlock< const SampleType > | drySamples | ) |
Copies the dry path samples into an internal delay line.
Definition at line 100 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::reset | ( | ) |
Resets the internal state variables of the processor.
Definition at line 87 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::setMixingRule | ( | MixingRule | newRule | ) |
Sets the mix rule.
Definition at line 49 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::setWetLatency | ( | SampleType | wetLatencyInSamples | ) |
Sets the relative latency of the wet signal path compared to the dry signal path, and thus the amount of latency compensation that will be added to the dry samples in this processor.
Definition at line 65 of file juce_DryWetMixer.cpp.
| void juce::dsp::DryWetMixer< SampleType >::setWetMixProportion | ( | SampleType | newWetMixProportion | ) |
Sets the current dry/wet mix proportion, with 0.0 being full dry and 1.0 being fully wet.
Definition at line 56 of file juce_DryWetMixer.cpp.