MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ refresh_decay()

void MayaFlux::Nodes::Network::ModalNetwork::refresh_decay ( )
private

Recompute every mode's per-sample decay from the base decay and multiplier.

Definition at line 120 of file ModalNetwork.cpp.

121{
122 const double coefficient = Kinesis::Discrete::decay_per_sample(
124
125 for (auto& mode : m_modes) {
126 mode.decay_coefficient = coefficient;
127 }
128}
uint32_t mode
double decay_per_sample(double seconds, double sample_rate) noexcept
Per-sample factor that falls by 1/e in a given time.

References MayaFlux::Kinesis::Discrete::decay_per_sample(), m_base_decay, m_decay_multiplier, m_modes, MayaFlux::Nodes::Network::NodeNetwork::m_sample_rate, and mode.

Referenced by set_decay_multiplier().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: