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

◆ read_with_interpolation()

double MayaFlux::Nodes::Network::WaveguideNetwork::read_with_interpolation ( const Memory::HistoryBuffer< double > &  delay,
size_t  integer_part,
double  fraction 
) const
private

Read from delay line with linear fractional interpolation.

Parameters
delayHistory buffer to read from
integer_partInteger delay in samples
fractionFractional delay (0.0 to 1.0)
Returns
Interpolated sample value

Definition at line 93 of file WaveguideNetwork.cpp.

97{
98 double s0 = delay[integer_part];
99 double s1 = delay[integer_part + 1];
100 return s0 + fraction * (s1 - s0);
101}

Referenced by process_bidirectional(), and process_unidirectional().

+ Here is the caller graph for this function: