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

◆ ModalDampingOperator()

MayaFlux::Nodes::Network::ModalDampingOperator::ModalDampingOperator ( const std::shared_ptr< ModalNetwork > & network)
explicit

Definition at line 17 of file ModalDampingOperator.cpp.

19 , m_network(network)
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
32 : m_default_response.quiet_seconds;
33
34 m_modes.push_back(ModeState {
35 .response = m_default_response,
36 .decay_seconds = initial });
37 }
38}
#define MF_WARN(comp, ctx,...)
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.

References MayaFlux::Journal::Configuration, MayaFlux::Nodes::Network::NetworkOperator::declare_controls(), m_controls, m_default_response, m_modes, m_network, MF_WARN, and MayaFlux::Journal::Nodes.

Here is the call graph for this function: