mirror of
https://codeberg.org/armin/rmx-19.git
synced 2026-10-12 09:11:53 +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
41
Source/Params.h
Normal file
41
Source/Params.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#pragma once
|
||||
#include <juce_audio_processors/juce_audio_processors.h>
|
||||
|
||||
namespace prm {
|
||||
|
||||
enum class Id : int {
|
||||
osc1Wave, osc2Wave, detune, oscMix,
|
||||
fltType, fltCutoff, fltRes, fltEnv, fltKey,
|
||||
ampA, ampD, ampS, ampR,
|
||||
fenvA, fenvD, fenvS, fenvR,
|
||||
lfoRate, lfoShape, lfoDepth, lfoTarget,
|
||||
fxType, fxAmt, fxTime,
|
||||
vol, pan, poly, glide, tune
|
||||
};
|
||||
|
||||
constexpr int num = 29;
|
||||
|
||||
struct Desc {
|
||||
const char* id;
|
||||
const char* name;
|
||||
const char* shortName;
|
||||
float min, max, def;
|
||||
bool discrete;
|
||||
float fine, coarse;
|
||||
};
|
||||
|
||||
const Desc& desc (Id id);
|
||||
bool validId (int i);
|
||||
|
||||
juce::AudioProcessorValueTreeState::ParameterLayout createLayout();
|
||||
|
||||
juce::String formatParam (Id id, float v);
|
||||
float changeParam (Id id, float cur, int dir, bool coarse);
|
||||
|
||||
const char* waveName (int w);
|
||||
const char* fltTypeName (int t);
|
||||
const char* lfoShapeName (int s);
|
||||
const char* lfoTargetName (int t);
|
||||
const char* fxTypeName (int t);
|
||||
|
||||
} // namespace prm
|
||||
Loading…
Add table
Add a link
Reference in a new issue