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

◆ set_mouth_volume()

bool MayaFlux::Nodes::Network::DuctNetwork::set_mouth_volume ( double volume)
nodiscard

Add air behind the mouth end, in cubic metres.

Returns
False, changing nothing, for a volume that is negative or not finite

A mouthpiece cavity, or the tip a truncated cone lacks: pi r^2 x / 3 for apex radius r and distance x to the apex. It lets a cone keep its whole number series of modes.

Definition at line 283 of file DuctNetwork.cpp.

284{
285 std::scoped_lock lock(m_producer_mutex);
286 auto next = build(m_length, m_profile, m_losses, volume, m_mouth, m_bell);
287 if (!next) {
288 return false;
289 }
290
291 next->keep_state = true;
292
293 m_mouth_volume = volume;
294 publish(std::move(next));
295 return true;
296}
std::shared_ptr< Prepared > build(double length, const Profile &profile, const Losses &losses, double mouth_volume, const std::shared_ptr< TerminationOperator > &mouth, const std::shared_ptr< TerminationOperator > &bell) const
std::shared_ptr< TerminationOperator > m_mouth
void publish(std::shared_ptr< Prepared > next)
std::shared_ptr< TerminationOperator > m_bell

References build(), m_bell, m_length, m_losses, m_mouth, m_mouth_volume, m_producer_mutex, m_profile, and publish().

Here is the call graph for this function: