28 if (keyframe ==
nullptr) {
41 static constexpr float kFoldWidthHeightRatio = 4.0f;
43 float width = bounds.getHeight() * kFoldWidthHeightRatio;
45 int x = bounds.getX() + (bounds.getWidth() - width) / 2;
48 Rectangle<int> slider_bounds(x, bounds.getY() + title_height, width, bounds.getHeight() - title_height);
void addSlider(SynthSlider *slider, bool show=true, bool listen=true)
Definition synth_section.cpp:445
static TextLookAndFeel * instance()
Singleton instance access.
Definition text_look_and_feel.h:106
void setWaveFoldBoost(float boost)
Sets a new wave fold boost factor.
Definition wave_fold_modifier.h:57
float getWaveFoldBoost()
Gets the current wave fold boost factor.
Definition wave_fold_modifier.h:48
WaveFoldModifierKeyframe * getKeyframe(int index)
Retrieves a WaveFoldModifierKeyframe at a given index.
Definition wave_fold_modifier.cpp:73
virtual void frameSelected(WavetableKeyframe *keyframe) override
Called when a new frame is selected in the wavetable editor.
Definition wave_fold_overlay.cpp:27
WaveFoldOverlay()
Constructor.
Definition wave_fold_overlay.cpp:8
WaveFoldModifier::WaveFoldModifierKeyframe * current_frame_
Currently selected frame data.
Definition wave_fold_overlay.h:73
void sliderDragEnded(Slider *moved_slider) override
Called when the user finishes interacting with the slider.
Definition wave_fold_overlay.cpp:64
void sliderValueChanged(Slider *moved_slider) override
Handles changes to the slider's value.
Definition wave_fold_overlay.cpp:56
WaveFoldModifier * wave_fold_modifier_
The associated WaveFoldModifier instance.
Definition wave_fold_overlay.h:72
std::unique_ptr< SynthSlider > wave_fold_amount_
Slider controlling the wave folding amount.
Definition wave_fold_overlay.h:75
virtual void setEditBounds(Rectangle< int > bounds) override
Sets the bounds of the editing area in the overlay.
Definition wave_fold_overlay.cpp:40
void setPositions()
Updates all OpenGL components and text positions after changes to lines or titles.
Definition wavetable_component_overlay.cpp:7
void addTitle(const std::string &title)
Adds a title string for the next control section.
Definition wavetable_component_overlay.h:94
void clearTitles()
Clears all control section titles.
Definition wavetable_component_overlay.h:82
A base overlay component for editing and interacting with a wavetable component's parameters.
Definition wavetable_component_overlay.h:22
void setControlsWidth(int width)
Sets the total width for controls in the overlay.
Definition wavetable_component_overlay.h:267
ControlsBackground controls_background_
Definition wavetable_component_overlay.h:300
virtual void setEditBounds(Rectangle< int > bounds)
Sets the editing bounds within which controls and titles are placed.
Definition wavetable_component_overlay.cpp:67
static constexpr float kTitleHeightRatio
Definition wavetable_component_overlay.h:32
void notifyChanged(bool mouse_up)
Notifies listeners that a change has occurred to the frame.
Definition wavetable_component_overlay.cpp:86
Represents a single state of a waveform at a specific position in a wavetable.
Definition wavetable_keyframe.h:35
int index()
Gets the index of this keyframe within its owner component.
Definition wavetable_keyframe.cpp:32
WavetableComponent * owner()
Gets the WavetableComponent that owns this keyframe.
Definition wavetable_keyframe.h:152
Declares the SynthSlider and related classes, providing various slider styles and functionality in th...