DX7 capability

This commit is contained in:
Dejvino
2026-02-28 19:41:35 +01:00
parent 7ff85048df
commit 0cecb05044
3 changed files with 207 additions and 55 deletions
+5 -2
View File
@@ -70,7 +70,7 @@ public:
// --- Grid Synth ---
struct GridCell {
enum Type { EMPTY, FIXED_OSCILLATOR, INPUT_OSCILLATOR, WAVETABLE, NOISE, LFO, GATE, GATE_INPUT, ADSR_ATTACK, ADSR_DECAY, ADSR_SUSTAIN, ADSR_RELEASE, FORK, WIRE, LPF, HPF, VCA, BITCRUSHER, DISTORTION, RECTIFIER, PITCH_SHIFTER, GLITCH, OPERATOR, DELAY, REVERB, SINK };
enum Type { EMPTY, FIXED_OSCILLATOR, INPUT_OSCILLATOR, WAVETABLE, NOISE, LFO, GATE_INPUT, ADSR_ATTACK, ADSR_DECAY, ADSR_SUSTAIN, ADSR_RELEASE, FORK, WIRE, LPF, HPF, VCA, BITCRUSHER, DISTORTION, RECTIFIER, PITCH_SHIFTER, GLITCH, OPERATOR, DELAY, REVERB, SINK };
enum Op { OP_ADD, OP_MUL, OP_SUB, OP_DIV, OP_MIN, OP_MAX };
Type type = EMPTY;
@@ -83,7 +83,10 @@ public:
uint32_t write_idx = 0; // For Delay
};
GridCell grid[5][8];
static const int GRID_W = 12;
static const int GRID_H = 12;
GridCell grid[GRID_W][GRID_H];
std::mutex gridMutex;
// Helper to process one sample step of the grid