feat(gui): add GUI components and displays

This commit is contained in:
2026-09-08 14:55:22 +02:00
parent 5a80534a2e
commit a9abca9e15
19 changed files with 898 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <JuceHeader.h>
#include "../Resources.h"
#include "../Params.h"
namespace serum
{
// ===========================================================================
// ADSR curve preview.
// ===========================================================================
class EnvelopeDisplay : public juce::Component
{
public:
void setParams (float attack, float decay, float sustain, float release, float curve);
void paint (juce::Graphics& g) override;
private:
float attack = 0.05f, decay = 0.25f, sustain = 0.7f, release = 0.3f, curve = 0.5f;
};
} // namespace serum