mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add drag to reorder fx
This commit is contained in:
parent
2777438436
commit
8a793ba5b4
7 changed files with 179 additions and 55 deletions
|
|
@ -5,15 +5,21 @@
|
|||
#include "Panels.h"
|
||||
|
||||
//==============================================================================
|
||||
class Editor : public juce::Component
|
||||
class Editor : public juce::Component,
|
||||
private gin::Parameter::ParameterListener,
|
||||
private juce::AsyncUpdater
|
||||
{
|
||||
public:
|
||||
Editor (WavetableAudioProcessor& proc_);
|
||||
~Editor() override;
|
||||
|
||||
void setupCallbacks();
|
||||
void resized() override;
|
||||
|
||||
private:
|
||||
void valueUpdated (gin::Parameter*) override { triggerAsyncUpdate(); }
|
||||
void handleAsyncUpdate() override;
|
||||
|
||||
WavetableAudioProcessor& proc;
|
||||
|
||||
OscillatorBox oscillators[Cfg::numOSCs] { { "oscillator 1", proc, 0 }, { "oscillator 2", proc, 1 } };
|
||||
|
|
@ -36,5 +42,7 @@ private:
|
|||
DelayBox delay { proc };
|
||||
ReverbBox reverb { proc };
|
||||
|
||||
gin::ComponentGrid fx { "fx" };
|
||||
|
||||
gin::Layout layout { *this };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue