![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.13
|
The shape of each stage of an envelope. More...
#include <envelope_curve.h>

Static Public Member Functions | |
| static constexpr EnvelopeShape | fromCurve (int32_t curve) |
Public Attributes | |
| EnvelopeCurve | attack {4.f} |
| EnvelopeCurve | decay {8.f} |
| EnvelopeCurve | release {8.f} |
Static Public Attributes | |
| static constexpr int32_t | kMinCurve = -50 |
| static constexpr int32_t | kMaxCurve = 50 |
| static constexpr int32_t | kClassicCurve = 32 |
The shape of each stage of an envelope.
|
staticconstexpr |
One user-facing curve control for all three stages. curve is in [kMinCurve, kMaxCurve]: 0 is linear, positive is exponential (fast at the start of every stage), negative bends the other way. Decay and release get k = curve / 4 and attack half that, so kClassicCurve is the shape the Deluge has always had.