MayaFlux 1.0.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 484 of file WaveguideNetwork.cpp.

485{
486 m_fundamental = std::max(20.0, freq);
488
489 if (!m_segments.empty()) {
490 const size_t required = m_delay_length_integer + 2;
491 auto& seg = m_segments[0];
492 if (seg.p_plus.capacity() < required) {
493 seg.p_plus = Memory::HistoryBuffer<double>(required);
494 seg.p_minus = Memory::HistoryBuffer<double>(required);
495 }
496 }
497}
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: