MayaFlux 0.2.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 345 of file WaveguideNetwork.cpp.

346{
347 m_fundamental = std::max(20.0, freq);
349
350 if (!m_segments.empty()) {
351 const size_t required = m_delay_length_integer + 2;
352 auto& seg = m_segments[0];
353 if (seg.p_plus.capacity() < required) {
354 seg.p_plus = Memory::HistoryBuffer<double>(required);
355 seg.p_minus = Memory::HistoryBuffer<double>(required);
356 }
357 }
358}
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: