mirror of
https://codeberg.org/armin/rmx-19.git
synced 2026-10-11 16:51:55 +02:00
26 lines
No EOL
560 B
C++
26 lines
No EOL
560 B
C++
#pragma once
|
|
#include "Params.h"
|
|
#include <juce_audio_processors/juce_audio_processors.h>
|
|
#include <vector>
|
|
|
|
struct Patch
|
|
{
|
|
const char* name;
|
|
const char* category;
|
|
float v[prm::num];
|
|
};
|
|
|
|
class PresetBank
|
|
{
|
|
public:
|
|
PresetBank();
|
|
|
|
int size() const noexcept { return (int) patches.size(); }
|
|
const Patch& get (int i) const { return patches[(size_t) i]; }
|
|
int findByName (const juce::String&) const;
|
|
|
|
void writeTo (int i, juce::AudioProcessorValueTreeState&) const;
|
|
|
|
private:
|
|
std::vector<Patch> patches;
|
|
}; |