quantumVERB  1.0.0
A FOSS convolution reverb plugin
UIFilterBlock.h
1 /*
2  ==============================================================================
3 
4  UIFilterBlock.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 namespace reverb {
17 
18  //==============================================================================
19  class UIFilterBlock : public UIBlock
20  {
21  public:
22  //==============================================================================
23  UIFilterBlock(AudioProcessor& processor, int index,
24  const juce::String& displayedName = juce::String());
25 
26  //==============================================================================
27  using Ptr = std::unique_ptr<UIFilterBlock>;
28 
29  //==============================================================================
30  void paint(juce::Graphics&) override;
31  void resized() override;
32 
33  //==============================================================================
34  juce::Slider freq;
35  juce::Slider q;
36  juce::Slider gain;
37 
38  protected:
39  //==============================================================================
41 
42  //==============================================================================
43  juce::Label freqLabel;
44  std::unique_ptr<SliderAttachment> freqAttachment;
45 
46  juce::Label qLabel;
47  std::unique_ptr<SliderAttachment> qAttachment;
48 
49  juce::Label gainLabel;
50  std::unique_ptr<SliderAttachment> gainAttachment;
51 
52  private:
53  //==============================================================================
55  };
56 
57 }
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
UIFilterBlock(AudioProcessor &processor, int index, const juce::String &displayedName=juce::String())
Constructs a UIFilterBlock object.
void resized() override
Manages the layout of UIFilterBlock when the block is resized.