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

◆ read()

double MayaFlux::Buffers::FeedbackProcessor::read ( const Memory::HistoryBuffer< double > &  ring,
double  lag 
)
staticprivate

Definition at line 271 of file FeedbackBuffer.cpp.

272{
273 const auto whole = static_cast<size_t>(lag);
274 const double fraction = lag - static_cast<double>(whole);
275 const double nearer = ring[whole - 1];
276
277 if (fraction <= 0.0) {
278 return nearer;
279 }
280 return nearer + (ring[whole] - nearer) * fraction;
281}

Referenced by processing_function().

+ Here is the caller graph for this function: