quantumVERB  1.0.0
A FOSS convolution reverb plugin
Gain.h
1 /*
2  ==============================================================================
3 
4  Gain.h
5 
6  ==============================================================================
7 */
8 
9 #pragma once
10 
11 #include "Task.h"
12 
13 namespace reverb
14 {
15 
16  //==============================================================================
17  /**
18  * TODO: Description
19  */
20  class Gain : public Task
21  {
22  public:
23  //==============================================================================
24  Gain(juce::AudioProcessor * processor);
25 
26  //==============================================================================
27  using Ptr = std::shared_ptr<Gain>;
28 
29  //==============================================================================
30  virtual void updateParams(const juce::AudioProcessorValueTreeState& params,
31  const juce::String& blockId) override;
32 
33  virtual AudioBlock exec(AudioBlock buffer) override;
34 
35  protected:
36  //==============================================================================
37  float gainFactor = 1.0f;
38  };
39 
40 }
float getParam(const juce::AudioProcessorValueTreeState &params, const juce::String &blockId) const
Internal method used to get (and check) a parameter&#39;s value.
Definition: Task.h:111
Gain(juce::AudioProcessor *processor)
Constructor. Creates a Gain object.
Definition: Gain.cpp:24
virtual AudioBlock exec(AudioBlock buffer) override
Apply Gain to input buffer to change volume of signal audio.
Definition: Gain.cpp:55
virtual void updateParams(const juce::AudioProcessorValueTreeState &params, const juce::String &blockId) override
Updates parameters from processor parameter tree.
Definition: Gain.cpp:35