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

◆ retarget()

void MayaFlux::Nodes::Network::RadiationOperator::retarget ( const Kinesis::Acoustics::DuctGrid & grid,
const Kinesis::Acoustics::DuctSpec & spec,
DuctEnd end )
overridevirtual

Bind to a new grid of the same duct while it keeps sounding.

Note
Allocates nothing. Called instead of prepare when the shape, losses or mouth volume change, so a slide of length does not restart the sound. The default is prepare, which resets.

Reimplemented from MayaFlux::Nodes::Network::TerminationOperator.

Definition at line 355 of file TerminationOperators.cpp.

356{
357 const auto coefficients = coefficients_for(grid, spec, end);
358 m_ready = coefficients.has_value();
359 if (m_ready) {
361 }
362 m_end_gain = end_gain_of(grid, end);
363}
Kinesis::Acoustics::RadiationCoefficients m_coefficients
std::optional< Kinesis::Acoustics::RadiationCoefficients > coefficients_for(const Kinesis::Acoustics::DuctGrid &grid, const Kinesis::Acoustics::DuctSpec &spec, DuctEnd end) const

References coefficients_for(), m_coefficients, m_end_gain, and m_ready.

Here is the call graph for this function: