quantumVERB  1.0.0
A FOSS convolution reverb plugin
UIReverbBlock.h
1 /*
2  ==============================================================================
3 
4  UIReverbBlock.h
5 
6  ==============================================================================
7 */
8 
9 #pragma once
10 
11 #include "../JuceLibraryCode/JuceHeader.h"
12 
13 #include "PluginProcessor.h"
14 #include "UIBlock.h"
15 
16 #include <vector>
17 
18 
19 namespace reverb {
20 
21  //==============================================================================
22  class UIReverbBlock : public UIBlock
23  {
24  public:
25  //==============================================================================
26  UIReverbBlock(AudioProcessor& processor);
27 
28  //==============================================================================
29  using Ptr = std::unique_ptr<UIReverbBlock>;
30 
31  //==============================================================================
32  void paint(juce::Graphics&) override;
33  void resized() override;
34 
35  //==============================================================================
36  juce::Slider irLength;
37  juce::Slider preDelay;
38  juce::Slider irGain;
39  juce::Slider outGain;
40  juce::Slider wetRatio;
41 
42  protected:
43  //==============================================================================
45 
46  //==============================================================================
47  juce::Label irLengthLabel;
48  std::unique_ptr<SliderAttachment> irLengthAttachment;
49 
50  juce::Label preDelayLabel;
51  std::unique_ptr<SliderAttachment> preDelayAttachment;
52 
53  juce::Label irGainLabel;
54  std::unique_ptr<SliderAttachment> irGainAttachment;
55 
56  juce::Label outGainLabel;
57  std::unique_ptr<SliderAttachment> outGainAttachment;
58 
59  juce::Label wetRatioLabel;
60  std::unique_ptr<SliderAttachment> wetRatioAttachment;
61 
62  private:
63  //==============================================================================
65  };
66 
67 }
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
void resized() override
Manages the layout of UIReverbBlock when the block is resized.
UIReverbBlock(AudioProcessor &processor)
Constructs an UIReverbBlock object.