re-structure menu, darken UI

This commit is contained in:
Armin 2026-09-08 21:57:34 +02:00
commit 4b44841049
16 changed files with 1217 additions and 304 deletions

View file

@ -10,6 +10,12 @@ struct Patch
float v[prm::num];
};
struct CategoryIndex
{
juce::StringArray names;
std::vector<std::vector<int>> patchIndices; // parallel to names
};
class PresetBank
{
public:
@ -21,6 +27,10 @@ public:
void writeTo (int i, juce::AudioProcessorValueTreeState&) const;
const CategoryIndex& categories() const { return catIndex; }
private:
std::vector<Patch> patches;
CategoryIndex catIndex;
void buildCategoryIndex();
};