quantumVERB  1.0.0
A FOSS convolution reverb plugin
reverb::Mixer Class Reference

#include <Mixer.h>

Inheritance diagram for reverb::Mixer:
Collaboration diagram for reverb::Mixer:

Public Types

using Ptr = std::shared_ptr< Mixer >
 
- Public Types inherited from reverb::Task
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 &params, 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...
 
- Public Member Functions inherited from reverb::Task
 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
 
- Protected Attributes inherited from reverb::Task
juce::AudioProcessor * processor
 
bool mustExec = true
 

Additional Inherited Members

- Public Attributes inherited from reverb::Task
double sampleRate
 
- Protected Member Functions inherited from reverb::Task
float getParam (const juce::AudioProcessorValueTreeState &params, const juce::String &blockId) const
 Internal method used to get (and check) a parameter's value.
 

Detailed Description

Class used to mix dry sound with wet sound after convolution.

Definition at line 20 of file Mixer.h.

Constructor & Destructor Documentation

◆ Mixer()

reverb::Mixer::Mixer ( juce::AudioProcessor *  processor)

Constructor. Creates a Mixer object.

Creates a Mixer object associated to an AudioProcessor.

Parameters
[in]processorPointer to main processor

Definition at line 26 of file Mixer.cpp.

Member Function Documentation

◆ exec()

AudioBlock reverb::Mixer::exec ( AudioBlock  wetAudio)
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.

Parameters
[in,out]wetAudioBuffer containing the wet audio signal

Implements reverb::Task.

Definition at line 58 of file Mixer.cpp.

◆ loadDry()

void reverb::Mixer::loadDry ( AudioBlock  dryAudio)

loads the dry signal into the dryAudio variable

Parameters
[in,out]dryAudioBuffer containing the dry signal

Definition at line 75 of file Mixer.cpp.

◆ updateParams()

void reverb::Mixer::updateParams ( const juce::AudioProcessorValueTreeState &  params,
const juce::String &  blockId 
)
overridevirtual

Updates parameters from processor parameter tree.

Parameters
[in]paramsProcessor parameter tree
[in]blockIdID of block whose paramters should be checked

Implements reverb::Task.

Definition at line 37 of file Mixer.cpp.


The documentation for this class was generated from the following files: