feat(params): add parameters, macros, RAVE controls and resources

This commit is contained in:
2026-09-08 14:55:22 +02:00
parent a9abca9e15
commit 0a94208d0f
12 changed files with 1198 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#pragma once
#include <JuceHeader.h>
#include "Params.h"
namespace serum
{
// ===========================================================================
// RAVE — one-shot "make it huge" control. Toggling on snapshots the current
// values of the affected parameters and pushes unison, width, drive, OTT and
// reverb to their boosted settings; toggling off restores the snapshot.
// ===========================================================================
class RaveController
{
public:
void setEnabled (bool enabled, juce::AudioProcessorValueTreeState& apvts);
bool isEnabled() const noexcept { return enabled; }
void resetSnapshot();
private:
bool enabled = false;
std::vector<std::pair<juce::String, float>> snapshot;
void snapshotParam (const juce::String& id, juce::AudioProcessorValueTreeState& apvts);
void setParam (const juce::String& id, float value, juce::AudioProcessorValueTreeState& apvts);
};
} // namespace serum