20 up_slew_limit_->setSliderStyle(Slider::RotaryHorizontalVerticalDrag);
40 if (keyframe ==
nullptr)
52 static constexpr float kLimitWidthHeightRatio = 4.0f;
55 int limit_width = bounds.getHeight() * kLimitWidthHeightRatio;
56 int total_width = 2 * limit_width + padding;
60 int x = bounds.getX() + (bounds.getWidth() - total_width) / 2;
62 int y = bounds.getY() + title_height;
63 int height = bounds.getHeight() - title_height;
float getSlewUpLimit()
Gets the upward slew limit.
Definition slew_limit_modifier.h:49
float getSlewDownLimit()
Gets the downward slew limit.
Definition slew_limit_modifier.h:58
void setSlewDownLimit(float slew_down_limit)
Sets the downward slew limit parameter.
Definition slew_limit_modifier.h:72
void setSlewUpLimit(float slew_up_limit)
Sets the upward slew limit parameter.
Definition slew_limit_modifier.h:65
SlewLimitModifierKeyframe * getKeyframe(int index)
Retrieves a SlewLimitModifierKeyframe by index.
Definition slew_limit_modifier.cpp:85
SlewLimitModifier::SlewLimitModifierKeyframe * current_frame_
Currently selected frame.
Definition slew_limiter_overlay.h:75
std::unique_ptr< SynthSlider > down_slew_limit_
Slider for downward slew limit.
Definition slew_limiter_overlay.h:78
SlewLimitModifier * slew_modifier_
The assigned SlewLimitModifier.
Definition slew_limiter_overlay.h:74
virtual void frameSelected(WavetableKeyframe *keyframe) override
Called when a new frame is selected in the wavetable editor.
Definition slew_limiter_overlay.cpp:39
void sliderValueChanged(Slider *moved_slider) override
Called when a slider value changes.
Definition slew_limiter_overlay.cpp:74
virtual void setEditBounds(Rectangle< int > bounds) override
Sets the layout of the editing controls.
Definition slew_limiter_overlay.cpp:51
std::unique_ptr< SynthSlider > up_slew_limit_
Slider for upward slew limit.
Definition slew_limiter_overlay.h:77
void sliderDragEnded(Slider *moved_slider) override
Called when a slider drag operation ends.
Definition slew_limiter_overlay.cpp:90
SlewLimiterOverlay()
Constructor.
Definition slew_limiter_overlay.cpp:8
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 addTitle(const std::string &title)
Adds a title string for the next control section.
Definition wavetable_component_overlay.h:94
void addLine(int position)
Adds a vertical line divider at the given position.
Definition wavetable_component_overlay.h:88
void clearTitles()
Clears all control section titles.
Definition wavetable_component_overlay.h:82
void clearLines()
Clears all line divider positions.
Definition wavetable_component_overlay.h:77
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
int getPadding()
Gets the current padding value.
Definition wavetable_component_overlay.h:248
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...