473{
474 if (
const auto pickup =
m_controls.pickup.pending()) {
476 }
477 if (
const auto output =
m_controls.output.pending()) {
479 }
480
481 const auto forward = [this](std::string_view name, Control& control) {
482 if (name == "scale" || name == "pickup" || name == "output") {
483 return;
484 }
485 if (const auto value = control.pending()) {
487 m_active->mouth->set_mapped_parameter(key, *value);
488 m_active->bell->set_mapped_parameter(key, *value);
489 }
490 };
491
492 std::apply(
493 [&](
const auto&... member) { (forward(member.name, member.get(
m_controls)), ...); },
494 Reflect::Generated::Description<DuctControls>::members());
495}
std::atomic< Output > m_output
std::shared_ptr< Prepared > m_active
@ PICKUP
Pressure inside the duct at the pickup position.
@ RADIATED
Pressure radiated at one metre, from the flow out of the bell.
void apply_pickup_position(double position)
DuctControls & m_controls
constexpr ParameterKey parameter_key(std::string_view name) noexcept