mirror of
https://codeberg.org/armin/sm-26.git
synced 2026-10-12 09:21:53 +02:00
Smooth parameter changes, crossfade filter type, add note fade-in and soft limiter
This commit is contained in:
parent
ab9ea542a7
commit
1a36b5baf0
2 changed files with 111 additions and 73 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <JuceHeader.h>
|
||||
#include <array>
|
||||
#include "SynthParams.h"
|
||||
#include "Presets.h"
|
||||
|
||||
|
|
@ -54,6 +55,7 @@ private:
|
|||
double env = 0.0;
|
||||
int envState = 0;
|
||||
int age = 0;
|
||||
int fadeLen = 32;
|
||||
double ic1eq = 0.0, ic2eq = 0.0;
|
||||
};
|
||||
|
||||
|
|
@ -101,6 +103,10 @@ private:
|
|||
|
||||
int currentPresetIndex = 0;
|
||||
mutable juce::SpinLock paramLock;
|
||||
|
||||
std::array<float, kNumParams> smooth;
|
||||
float smCoef = 1.0f;
|
||||
float ftA = 1.0f, ftB = 0.0f, ftC = 0.0f;
|
||||
};
|
||||
|
||||
} // namespace sm26
|
||||
Loading…
Add table
Add a link
Reference in a new issue