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

◆ process()

void MayaFlux::Nodes::Network::ReedOperator::process ( float dt)
overridevirtual

Process for one batch cycle.

Parameters
dtTime delta or sample count (operator-specific)

Implements MayaFlux::Nodes::Network::NetworkOperator.

Definition at line 156 of file TerminationOperators.cpp.

157{
160
161 const double smoothing = m_smoothing.load(std::memory_order_relaxed);
162 m_alpha = smoothing > 0.0 ? 1.0 - std::exp(-m_time_step / smoothing) : 1.0;
163
164 const double cutoff = m_noise_cutoff.load(std::memory_order_relaxed);
165 m_noise_alpha = cutoff > 0.0 ? 1.0 - std::exp(-2.0 * std::numbers::pi * cutoff * m_time_step) : 1.0;
166 m_noise_scale = std::sqrt(3.0 * (2.0 - m_noise_alpha) / m_noise_alpha);
167 m_unique.store(
168 m_resonance.load(std::memory_order_relaxed) > 0.0
169 || Acoustics::reed_coupling_is_unique(channel(), Acoustics::flow_coupling_gain(m_end_gain)),
170 std::memory_order_relaxed);
171}
void refresh_controls()
Read node sources into their controls.
Kinesis::Acoustics::ReedChannel channel() const noexcept

References apply_controls(), channel(), m_alpha, m_end_gain, m_noise_alpha, m_noise_cutoff, m_noise_scale, m_resonance, m_smoothing, m_time_step, m_unique, and MayaFlux::Nodes::Network::NetworkOperator::refresh_controls().

Referenced by prepare(), and retarget().

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