Deluge Firmware 1.3.0
Build date: 2026.11.13
Loading...
Searching...
No Matches
deluge::modulation::EnvelopeShape Struct Reference

The shape of each stage of an envelope. More...

#include <envelope_curve.h>

Collaboration diagram for deluge::modulation::EnvelopeShape:

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

Detailed Description

The shape of each stage of an envelope.

Member Data Documentation

◆ kMinCurve

int32_t deluge::modulation::EnvelopeShape::kMinCurve = -50
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.


The documentation for this struct was generated from the following file: