Vital
Loading...
Searching...
No Matches
oscillator_advanced_section.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
4#include "synth_section.h"
5
7class TextSelector;
11
17public:
24 OscillatorAdvancedSection(int index, const vital::output_map& mono_modulations,
25 const vital::output_map& poly_modulations);
26
31
36 void paintBackground(Graphics& g) override { paintChildrenBackgrounds(g); }
37
41 void resized() override;
42
47 void passOscillatorSection(const OscillatorSection* oscillator);
48
49private:
50 std::unique_ptr<OscillatorOptions> oscillator_options_;
51 std::unique_ptr<OscillatorUnison> oscillator_unison_;
52
53 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(OscillatorAdvancedSection)
54};
A pair of buttons for incrementing and decrementing a Slider's value.
Definition incrementer_buttons.h:16
A UI section that provides advanced oscillator controls, including oscillator options and unison sett...
Definition oscillator_advanced_section.h:16
void paintBackground(Graphics &g) override
Paints the background of this section by painting the children's backgrounds.
Definition oscillator_advanced_section.h:36
void passOscillatorSection(const OscillatorSection *oscillator)
Passes a reference to the associated OscillatorSection to allow control synchronization.
Definition oscillator_advanced_section.cpp:592
void resized() override
Called when this component is resized. Resets the bounds of child components.
Definition oscillator_advanced_section.cpp:582
virtual ~OscillatorAdvancedSection()
Destructor.
Definition oscillator_advanced_section.cpp:580
OscillatorAdvancedSection(int index, const vital::output_map &mono_modulations, const vital::output_map &poly_modulations)
Constructs an OscillatorAdvancedSection for a given oscillator index.
Definition oscillator_advanced_section.cpp:569
A section providing toggleable oscillator options such as MIDI tracking and high-resolution wavetable...
Definition oscillator_advanced_section.cpp:16
A UI section representing an oscillator in the synthesizer.
Definition oscillator_section.h:32
A section providing control over unison parameters such as blend, detune range, stereo spread,...
Definition oscillator_advanced_section.cpp:367
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
void paintChildrenBackgrounds(Graphics &g)
Paints the backgrounds for all child sections.
Definition synth_section.cpp:274
A specialized SynthSlider that displays a popup menu of text options.
Definition text_selector.h:14
std::map< std::string, Output * > output_map
Maps parameter names to Output pointers, representing output signals from various modules.
Definition synth_types.h:229