Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
decay_envelope.hpp File Reference
#include <pulp/signal/denormal.hpp>
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Classes

class  pulp::signal::DecayEnvelopeT< SampleType >
 A one-shot percussion envelope: linear attack ramp, optional hold, then exponential decay. More...

Namespaces

namespace  pulp
namespace  pulp::signal

Typedefs

using pulp::signal::DecayEnvelope = DecayEnvelopeT<float>
using pulp::signal::DecayEnvelope64 = DecayEnvelopeT<double>

Functions

double pulp::signal::exp_decay_coefficient (double ms, double sample_rate)
 Per-sample multiplier for an exponential decay with time constant ms.
double pulp::signal::t60_decay_coefficient (double ms, double sample_rate)
 Per-sample multiplier for a decay that reaches -60 dB after ms.