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

◆ set_decay_multiplier()

void MayaFlux::Nodes::Network::ModalNetwork::set_decay_multiplier ( double  multiplier)

Set global decay multiplier.

Parameters
multiplierScales all decay times (>1.0 = longer decay, <1.0 = shorter). Floored at 0.01. Applies to the ring in progress and to every later excitation.

Definition at line 130 of file ModalNetwork.cpp.

131{
132 multiplier = std::max(0.01, multiplier);
133 if (multiplier == m_decay_multiplier) {
134 return;
135 }
136
137 m_decay_multiplier = multiplier;
139}
void refresh_decay()
Recompute every mode's per-sample decay from the base decay and multiplier.

References m_decay_multiplier, and refresh_decay().

Referenced by apply_broadcast_parameter().

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