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
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <JuceHeader.h>
#include "../Resources.h"
#include "../Wavetable.h"
namespace serum
{
// ===========================================================================
// Single-cycle wavetable view (morphs with the WT position knob).
// ===========================================================================
class WaveformDisplay : public juce::Component
{
public:
void setWavetables (const WavetableLibrary* lib) { wtLib = lib; }
void setWaveIndex (int index) { wave = index; }
void setFramePosition (float pos) { wtPos = pos; }
void setEnabled (bool e) { enabled = e; }
void paint (juce::Graphics& g) override;
private:
const WavetableLibrary* wtLib = nullptr;
int wave = 0;
float wtPos = 0.0f;
bool enabled = true;
};
} // namespace serum