140 void valuesChanged(
int start,
int end,
bool mouse_up)
override;
151 void barsChanged(
int start,
int end,
bool mouse_up)
override;
Interface for receiving notifications when bar values are changed.
Definition bar_editor.h:24
A specialized SynthSlider that displays a popup menu of text options.
Definition text_selector.h:14
Interface for receiving notifications about waveform modifications.
Definition wave_source_editor.h:26
A WavetableComponent that acts as a direct source of waveforms.
Definition wave_source.h:25
InterpolationMode
Defines how keyframes should be interpolated.
Definition wave_source.h:31
Provides an overlay for editing WaveSource objects in the Wavetable component.
Definition wave_source_overlay.h:24
void loadFrequencyDomain()
Loads frequency-domain data from the editors back into the current frame.
Definition wave_source_overlay.cpp:260
void setFrequencyZoom(float zoom) override
Sets the zoom level for frequency-domain editors.
Definition wave_source_overlay.h:174
std::unique_ptr< SynthSlider > horizontal_grid_
SynthSlider for the number of horizontal grid lines in the WaveSourceEditor.
Definition wave_source_overlay.h:232
void updateFrequencyDomain(std::complex< float > *frequency_domain)
Updates the frequency-domain editors with new data.
Definition wave_source_overlay.cpp:240
virtual void frameDragged(WavetableKeyframe *keyframe, int position) override
Called when a keyframe is dragged within the Wavetable.
Definition wave_source_overlay.h:81
void setWaveSource(WaveSource *wave_source)
Assigns a WaveSource to this overlay.
Definition wave_source_overlay.h:193
std::unique_ptr< BarEditor > frequency_phases_
BarEditor for frequency phases.
Definition wave_source_overlay.h:222
void setPowerScale(bool scale) override
Enables or disables power scaling for the frequency amplitude editor.
Definition wave_source_overlay.h:167
static constexpr int kDefaultYGrid
Default number of vertical grid divisions.
Definition wave_source_overlay.h:34
virtual bool setFrequencyAmplitudeBounds(Rectangle< int > bounds) override
Sets the bounds for the frequency amplitude editor.
Definition wave_source_overlay.cpp:216
vital::WaveFrame * current_frame_
Pointer to the currently selected WaveFrame in the WaveSource.
Definition wave_source_overlay.h:207
virtual bool setTimeDomainBounds(Rectangle< int > bounds) override
Sets the bounds for the time-domain editor.
Definition wave_source_overlay.cpp:205
void barsChanged(int start, int end, bool mouse_up) override
Called when values in the BarEditor are changed.
Definition wave_source_overlay.cpp:354
static constexpr float kBarAlpha
Default alpha value for bars in BarEditor components.
Definition wave_source_overlay.h:46
WaveSource * wave_source_
Pointer to the WaveSource being edited.
Definition wave_source_overlay.h:202
void valuesChanged(int start, int end, bool mouse_up) override
Called when values in the WaveSourceEditor are changed.
Definition wave_source_overlay.cpp:283
std::unique_ptr< Slider > interpolation_selector_
(Unused) Slider for interpolation selection in other contexts.
Definition wave_source_overlay.h:252
std::unique_ptr< Component > vertical_incrementers_
Incrementer button set for vertical grid adjustments.
Definition wave_source_overlay.h:247
std::unique_ptr< TextSelector > interpolation_type_
TextSelector for choosing interpolation style and mode.
Definition wave_source_overlay.h:227
static constexpr float kDefaultPhase
Default phase value for frequency phase editor.
Definition wave_source_overlay.h:41
void resized() override
Called when the component is resized.
Definition wave_source_overlay.cpp:116
std::unique_ptr< Component > horizontal_incrementers_
Incrementer button set for horizontal grid adjustments.
Definition wave_source_overlay.h:242
virtual bool setPhaseBounds(Rectangle< int > bounds) override
Sets the bounds for the frequency phase editor.
Definition wave_source_overlay.cpp:227
std::unique_ptr< BarEditor > frequency_amplitudes_
BarEditor for frequency amplitudes.
Definition wave_source_overlay.h:217
static constexpr int kDefaultXGrid
Default number of horizontal grid divisions.
Definition wave_source_overlay.h:29
virtual void frameSelected(WavetableKeyframe *keyframe) override
Called when a keyframe is selected within the Wavetable.
Definition wave_source_overlay.cpp:140
WaveSourceOverlay()
Constructs a new WaveSourceOverlay.
Definition wave_source_overlay.cpp:30
void setInterpolationType(WaveSource::InterpolationStyle style, WaveSource::InterpolationMode mode)
Sets the interpolation type for the WaveSource.
Definition wave_source_overlay.cpp:336
virtual void setEditBounds(Rectangle< int > bounds) override
Sets the bounds for the editable region of this overlay.
Definition wave_source_overlay.cpp:165
void sliderValueChanged(Slider *moved_slider) override
Called when a slider changes value.
Definition wave_source_overlay.cpp:303
std::unique_ptr< WaveSourceEditor > oscillator_
Editor for time-domain waveforms.
Definition wave_source_overlay.h:212
std::unique_ptr< SynthSlider > vertical_grid_
SynthSlider for the number of vertical grid lines in the WaveSourceEditor.
Definition wave_source_overlay.h:237
InterpolationStyle
Defines how interpolation is performed between keyframes.
Definition wavetable_component.h:38
A base overlay component for editing and interacting with a wavetable component's parameters.
Definition wavetable_component_overlay.h:22
Represents a single state of a waveform at a specific position in a wavetable.
Definition wavetable_keyframe.h:35
Represents a single frame of a wavetable, containing both time-domain and frequency-domain data.
Definition wave_frame.h:16