mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Wire up remaining FX members, param layout, and section bounds
This commit is contained in:
parent
270abe2cc0
commit
758016634f
4 changed files with 18 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue