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

◆ apply_controls()

void MayaFlux::Nodes::Network::ReedOperator::apply_controls ( )
private

Definition at line 235 of file TerminationOperators.cpp.

236{
237 const auto apply = [](Control& control, std::atomic<double>& slot, Rule rule) {
238 if (const auto value = control.pending()) {
239 put(slot, *value, rule);
240 }
241 };
242
243 apply(m_controls.pressure, m_target_pressure, Rule::ANY);
244 apply(m_controls.smoothing, m_smoothing, Rule::NON_NEGATIVE);
245 apply(m_controls.resonance, m_resonance, Rule::NON_NEGATIVE);
246 apply(m_controls.reed_damping, m_reed_damping, Rule::NON_NEGATIVE);
247 apply(m_controls.noise, m_noise, Rule::NON_NEGATIVE);
248 apply(m_controls.noise_cutoff, m_noise_cutoff, Rule::NON_NEGATIVE);
249 apply(m_controls.reed_area, m_reed_area, Rule::NON_NEGATIVE);
250 apply(m_controls.lip, m_lip, Rule::UNIT);
251 apply(m_controls.closing_pressure, m_closing_pressure, Rule::POSITIVE);
252 apply(m_controls.opening, m_rest_opening, Rule::POSITIVE);
253 apply(m_controls.width, m_width, Rule::POSITIVE);
254}

References m_closing_pressure, m_controls, m_lip, m_noise, m_noise_cutoff, m_reed_area, m_reed_damping, m_resonance, m_rest_opening, m_smoothing, m_target_pressure, m_width, and MayaFlux::Nodes::Network::Control::pending().

Referenced by process().

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