![]() |
quantumVERB
1.0.0
A FOSS convolution reverb plugin
|
#include <Mixer.h>
Public Types | |
using | Ptr = std::shared_ptr< Mixer > |
![]() | |
using | Ptr = std::shared_ptr< Task > |
Public Member Functions | |
Mixer (juce::AudioProcessor *processor) | |
Constructor. Creates a Mixer object. More... | |
virtual void | updateParams (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) override |
Updates parameters from processor parameter tree. More... | |
virtual AudioBlock | exec (AudioBlock wetAudio) override |
Mix the wet and dry sound according to a proportionality parameter. More... | |
void | loadDry (AudioBlock audio) |
loads the dry signal into the dryAudio variable More... | |
![]() | |
Task (juce::AudioProcessor *processor) | |
virtual bool | needsToRun () const |
Tells caller whether block must be run for current block. More... | |
virtual void | updateSampleRate (double sr) |
Update sample rate for task block. More... | |
Protected Attributes | |
juce::AudioSampleBuffer | dryAudioCopy |
float | wetRatio = 0.0f |
![]() | |
juce::AudioProcessor * | processor |
bool | mustExec = true |
Additional Inherited Members | |
![]() | |
double | sampleRate |
![]() | |
float | getParam (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const |
Internal method used to get (and check) a parameter's value. | |
Class used to mix dry sound with wet sound after convolution.
reverb::Mixer::Mixer | ( | juce::AudioProcessor * | processor | ) |
Constructor. Creates a Mixer object.
Creates a Mixer object associated to an AudioProcessor.
[in] | processor | Pointer to main processor |
|
overridevirtual |
Mix the wet and dry sound according to a proportionality parameter.
Mixing the wet sound passed as an argument with the dry sound content in the dryAudio buffer.
[in,out] | wetAudio | Buffer containing the wet audio signal |
Implements reverb::Task.
void reverb::Mixer::loadDry | ( | AudioBlock | dryAudio | ) |
|
overridevirtual |
Updates parameters from processor parameter tree.
[in] | params | Processor parameter tree |
[in] | blockId | ID of block whose paramters should be checked |
Implements reverb::Task.