2024-08-10 19:26:56 +00:00
|
|
|
#include "VisualiserSettings.h"
|
2024-08-13 13:55:30 +00:00
|
|
|
#include "VisualiserComponent.h"
|
2024-08-10 19:26:56 +00:00
|
|
|
#include "../PluginEditor.h"
|
|
|
|
|
2024-08-23 10:06:50 +00:00
|
|
|
|
2024-09-22 17:49:58 +00:00
|
|
|
VisualiserSettings::VisualiserSettings(VisualiserParameters& parameters, int numChannels) : parameters(parameters), numChannels(numChannels) {
|
2024-08-23 10:06:50 +00:00
|
|
|
addAndMakeVisible(brightness);
|
|
|
|
addAndMakeVisible(intensity);
|
2024-08-10 19:26:56 +00:00
|
|
|
addAndMakeVisible(persistence);
|
|
|
|
addAndMakeVisible(hue);
|
2024-09-29 18:46:35 +00:00
|
|
|
addAndMakeVisible(saturation);
|
2024-09-29 19:36:16 +00:00
|
|
|
addAndMakeVisible(focus);
|
2024-11-09 21:37:20 +00:00
|
|
|
addAndMakeVisible(noise);
|
|
|
|
addAndMakeVisible(glow);
|
2024-08-13 18:19:05 +00:00
|
|
|
addAndMakeVisible(graticuleToggle);
|
|
|
|
addAndMakeVisible(smudgeToggle);
|
2024-08-14 19:27:56 +00:00
|
|
|
addAndMakeVisible(upsamplingToggle);
|
2024-08-13 13:55:30 +00:00
|
|
|
|
2024-08-23 10:06:50 +00:00
|
|
|
brightness.setSliderOnValueChange();
|
2024-08-13 13:55:30 +00:00
|
|
|
intensity.setSliderOnValueChange();
|
|
|
|
persistence.setSliderOnValueChange();
|
|
|
|
hue.setSliderOnValueChange();
|
2024-09-29 18:46:35 +00:00
|
|
|
saturation.setSliderOnValueChange();
|
2024-09-29 19:36:16 +00:00
|
|
|
focus.setSliderOnValueChange();
|
2024-11-09 21:37:20 +00:00
|
|
|
noise.setSliderOnValueChange();
|
|
|
|
glow.setSliderOnValueChange();
|
2024-08-10 19:26:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VisualiserSettings::~VisualiserSettings() {}
|
|
|
|
|
|
|
|
void VisualiserSettings::resized() {
|
2024-08-13 13:55:30 +00:00
|
|
|
auto area = getLocalBounds().reduced(20);
|
2024-08-10 19:26:56 +00:00
|
|
|
double rowHeight = 30;
|
2024-08-23 10:06:50 +00:00
|
|
|
brightness.setBounds(area.removeFromTop(rowHeight));
|
2024-08-10 19:26:56 +00:00
|
|
|
intensity.setBounds(area.removeFromTop(rowHeight));
|
|
|
|
persistence.setBounds(area.removeFromTop(rowHeight));
|
|
|
|
hue.setBounds(area.removeFromTop(rowHeight));
|
2024-09-29 18:46:35 +00:00
|
|
|
saturation.setBounds(area.removeFromTop(rowHeight));
|
2024-09-29 19:36:16 +00:00
|
|
|
focus.setBounds(area.removeFromTop(rowHeight));
|
2024-11-09 21:37:20 +00:00
|
|
|
noise.setBounds(area.removeFromTop(rowHeight));
|
|
|
|
glow.setBounds(area.removeFromTop(rowHeight));
|
2024-08-13 18:19:05 +00:00
|
|
|
graticuleToggle.setBounds(area.removeFromTop(rowHeight));
|
|
|
|
smudgeToggle.setBounds(area.removeFromTop(rowHeight));
|
2024-08-14 19:27:56 +00:00
|
|
|
upsamplingToggle.setBounds(area.removeFromTop(rowHeight));
|
2024-08-10 19:26:56 +00:00
|
|
|
}
|