mirror of
https://codeberg.org/armin/rmx-19.git
synced 2026-10-12 01:02:11 +02:00
Initial commit: RMX-19 rack sound module (VST3/AU) with dot-matrix LCD UI
This commit is contained in:
commit
c72c0216fd
16 changed files with 2170 additions and 0 deletions
26
Source/PresetBank.h
Normal file
26
Source/PresetBank.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue