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 392 of file WaveguideNetwork.cpp.

393{
394 m_fundamental = std::max(20.0, freq);
396
397 if (!m_segments.empty()) {
398 const size_t required = m_delay_length_integer + 2;
399 auto& seg = m_segments[0];
400 if (seg.p_plus.capacity() < required) {
401 seg.p_plus = Memory::HistoryBuffer<double>(required);
402 seg.p_minus = Memory::HistoryBuffer<double>(required);
403 }
404 }
405}
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: