20{
21 if (!network) {
23 "ModalDampingOperator has no ModalNetwork");
24 return;
25 }
26
27 m_modes.reserve(network->get_node_count());
28 for (size_t index = 0; index < network->get_node_count(); ++index) {
29 const double decay = network->get_mode_decay_time(index).value_or(
m_default_response.quiet_seconds);
30 const double initial = std::isfinite(decay) && decay > 0.0
31 ? decay
33
36 .decay_seconds = initial });
37 }
38}
#define MF_WARN(comp, ctx,...)
Response m_default_response
std::vector< ModeState > m_modes
ModalDampingControls & m_controls
std::weak_ptr< ModalNetwork > m_network
C & declare_controls()
Create the operator's controls struct and keep it alive.
@ Configuration
Configuration and parameter updates.
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.