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

◆ set_fundamental()

void MayaFlux::Nodes::Network::WaveguideNetwork::set_fundamental ( double  freq)

Set fundamental frequency.

Parameters
freqFrequency in Hz

Recomputes delay line length. Fractional part handled via interpolation.

Definition at line 353 of file WaveguideNetwork.cpp.

354{
355 m_fundamental = std::max(20.0, freq);
357
358 if (!m_segments.empty()) {
359 const size_t required = m_delay_length_integer + 2;
360 auto& seg = m_segments[0];
361 if (seg.p_plus.capacity() < required) {
362 seg.p_plus = Memory::HistoryBuffer<double>(required);
363 seg.p_minus = Memory::HistoryBuffer<double>(required);
364 }
365 }
366}
std::vector< WaveguideSegment > m_segments

References compute_delay_length(), m_delay_length_integer, m_fundamental, and m_segments.

Referenced by apply_broadcast_parameter().

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