FahlGrahn Audio v1.0.0
Loading...
Searching...
No Matches
SliderGroup.h
1#pragma once
2
3#include "CustomLookAndFeel/DeathMetalLookAndFeel.h"
4#include "CustomLookAndFeel/FontAudioLookAndFeel.h"
5#include "PluginProcessor.h"
6#include <JuceHeader.h>
7
8class SliderGroup : public juce::Component
9{
10 public:
11 SliderGroup(AudioPluginAudioProcessor &processor, std::string_view bypassParameterID,
12 std::string_view frequencyParameterID, std::string_view gainParameterID, std::string_view QParameterID,
13 std::string_view filterOrderParameterID);
14 ~SliderGroup() override;
15 void resized() override;
16 void setText(const juce::String &title);
17 void setSymbolType(const juce::CharPointer_UTF8 &symbolType);
18
19 private:
20 AudioPluginAudioProcessor &mProcessor;
21 juce::GroupComponent frame;
22
23 juce::Label filterSymbolLabel;
24
25 // Frequency
26 juce::Slider mFrequencySlider;
27
28 // Gain
29 juce::Slider mGainSlider;
30
31 // Q
32 juce::Slider mQSlider;
33
34 // Bypass
35 juce::TextButton mBypassButton;
36
37 // Filter order
38 juce::ComboBox mFilterOrder;
39
40 std::unique_ptr<juce::AudioProcessorValueTreeState::ButtonAttachment> mBypassAttachment;
41 std::unique_ptr<juce::AudioProcessorValueTreeState::ComboBoxAttachment> mFilterOrderAttachment;
42 std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> mFrequencyAttachment;
43 std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> mGainAttachment;
44 std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> mQAttachment;
45 DeathMetalLookAndFeel deathMetalLookAndFeel;
46 FontAudioLookAndFeel fontAudioLookAndFeel;
47};
Definition PluginProcessor.h:9
Definition DeathMetalLookAndFeel.h:9
Definition FontAudioLookAndFeel.h:7
Definition SliderGroup.h:9