Vital
Loading...
Searching...
No Matches
portamento_section.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
4#include "synth_section.h"
5
6class SynthButton;
7class SynthSlider;
8class TextSlider;
9
19public:
24 PortamentoSection(String name);
25
27 virtual ~PortamentoSection();
28
33 void paintBackground(Graphics& g) override;
34
39 void paintBackgroundShadow(Graphics& g) override { paintTabShadow(g); }
40
44 void resized() override;
45
50 void sliderValueChanged(Slider* changed_slider) override;
51
56 void setAllValues(vital::control_map& controls) override;
57
58private:
59 std::unique_ptr<SynthSlider> portamento_;
60 std::unique_ptr<SynthSlider> portamento_slope_;
61 std::unique_ptr<SynthButton> portamento_scale_;
62 std::unique_ptr<SynthButton> portamento_force_;
63 std::unique_ptr<SynthButton> legato_;
64
65 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PortamentoSection)
66};
A UI section for controlling portamento (glide) settings in a synthesizer.
Definition portamento_section.h:18
virtual ~PortamentoSection()
Destructor.
Definition portamento_section.cpp:43
void setAllValues(vital::control_map &controls) override
Sets all parameter values from a given control map.
Definition portamento_section.cpp:99
void paintBackground(Graphics &g) override
Paints the background of the portamento section, including labels and backgrounds.
Definition portamento_section.cpp:45
void sliderValueChanged(Slider *changed_slider) override
Called when a slider value changes to update dependent controls.
Definition portamento_section.cpp:91
void paintBackgroundShadow(Graphics &g) override
Paints the background shadow for the portamento section.
Definition portamento_section.h:39
void resized() override
Called when the component is resized. Lays out sliders and buttons.
Definition portamento_section.cpp:64
PortamentoSection(String name)
Constructs a new PortamentoSection with a given name.
Definition portamento_section.cpp:10
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
virtual void paintTabShadow(Graphics &g)
Paints a tab-like shadow effect around the component.
Definition synth_section.cpp:188
A specialized slider with extended functionality for modulation, parameter control,...
Definition synth_slider.h:314
std::map< std::string, Value * > control_map
Maps parameter names to Value pointers representing synth control parameters.
Definition synth_types.h:214