Vital
Loading...
Searching...
No Matches
chorus_section.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "JuceHeader.h"
7#include "delay_section.h"
8#include "synth_section.h"
9
10class ChorusViewer;
11class SynthButton;
12class TempoSelector;
13
22public:
26 ChorusSection(const String& name, const vital::output_map& mono_modulations);
27
30
33 void paintBackground(Graphics& g) override;
34
37 void paintBackgroundShadow(Graphics& g) override { if (isActive()) paintTabShadow(g); }
38
40 void resized() override;
41
44 void setActive(bool active) override;
45
50 void deltaMovement(float x, float y) override;
51
52private:
53 std::unique_ptr<SynthButton> on_;
54 std::unique_ptr<SynthSlider> frequency_;
55 std::unique_ptr<SynthSlider> tempo_;
56 std::unique_ptr<TempoSelector> sync_;
57 std::unique_ptr<SynthSlider> voices_;
58 std::unique_ptr<ChorusViewer> chorus_viewer_;
59 std::unique_ptr<DelayFilterViewer> filter_viewer_;
60
61 std::unique_ptr<SynthSlider> feedback_;
62 std::unique_ptr<SynthSlider> mod_depth_;
63 std::unique_ptr<SynthSlider> delay_1_;
64 std::unique_ptr<SynthSlider> delay_2_;
65 std::unique_ptr<SynthSlider> dry_wet_;
66 std::unique_ptr<SynthSlider> filter_cutoff_;
67 std::unique_ptr<SynthSlider> filter_spread_;
68
69 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ChorusSection)
70};
A UI section for editing chorus effect parameters.
Definition chorus_section.h:21
void paintBackgroundShadow(Graphics &g) override
Definition chorus_section.h:37
void resized() override
Resizes and lays out child components and controls.
Definition chorus_section.cpp:206
ChorusSection(const String &name, const vital::output_map &mono_modulations)
Definition chorus_section.cpp:109
void deltaMovement(float x, float y) override
Definition chorus_section.cpp:250
void setActive(bool active) override
Definition chorus_section.cpp:244
void paintBackground(Graphics &g) override
Definition chorus_section.cpp:184
~ChorusSection()
Destructor.
A visual display showing chorus delay lines based on the current settings.
Definition chorus_section.cpp:21
Interface for objects that want to respond to mouse drag movements in the filter viewer.
Definition delay_section.h:34
A specialized OpenGlToggleButton with additional functionality for the Vital synth.
Definition synth_button.h:450
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
bool isActive() const
Checks if the section is currently active.
Definition synth_section.h:683
virtual void paintTabShadow(Graphics &g)
Paints a tab-like shadow effect around the component.
Definition synth_section.cpp:188
A slider component that allows selection between different tempo modes (seconds, tempo,...
Definition tempo_selector.h:14
Declares the DelaySection class and related viewer classes for displaying and controlling a delay eff...
std::map< std::string, Output * > output_map
Maps parameter names to Output pointers, representing output signals from various modules.
Definition synth_types.h:229