Wire up remaining FX members, param layout, and section bounds

This commit is contained in:
Armin 2026-07-15 23:54:52 +02:00
commit 758016634f
4 changed files with 18 additions and 6 deletions

View file

@ -57,8 +57,12 @@ private:
class PatchLCD : public juce::Component {
public:
std::function<void()> onClick;
void setText(const juce::String& t) { text = t; repaint(); }
const juce::String& getText() const { return text; }
void paint(juce::Graphics& g) override;
void mouseEnter(const juce::MouseEvent&) override { setMouseCursor(juce::MouseCursor::PointingHandCursor); }
void mouseDown(const juce::MouseEvent&) override { if (onClick) onClick(); }
private:
juce::String text = "INIT";
};
@ -92,6 +96,7 @@ private:
int lastTriggeredNote = -1;
int currentPitchBend = 64; // 0..127, 64 = center
bool pitchBendDragging = false;
int pitchBendStartY = 0;
bool pitchBendGliding = false;
float pitchBendGlideStart = 0.0f;