58 void process(
float frames)
override;
61 void set_parameter(std::string_view name,
double value)
override;
64 [[nodiscard]] std::optional<double>
query_state(std::string_view name)
const override;
65 [[nodiscard]] std::string_view
get_type_name()
const override {
return "ModalDamping"; }
83 [[nodiscard]]
static bool valid(
const Response& response)
noexcept;
85 bool apply_field(
double Response::* member,
double value);
86 void apply_controls();
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
One named control of a network or operator: empty, a value, or a mapped source.
void process(float frames) override
Process for one batch cycle.
Response m_default_response
std::vector< ModeState > m_modes
ModalDampingControls & m_controls
std::weak_ptr< ModalNetwork > m_network
std::optional< double > query_state(std::string_view name) const override
The control of that name as the operator holds it, or "mode_count".
void set_parameter(std::string_view name, double value) override
Sets the control of that name, so "loud_seconds" is the same as set({ .loud_seconds = ....
ModalDampingOperator(const std::shared_ptr< ModalNetwork > &network)
std::string_view get_type_name() const override
Type name for introspection.
ModalDampingControls Controls
void set_mode(size_t index, const ModalDampingControls &controls)
Change one mode's response from the numbers controls holds.
Network of resonant modes for modal synthesis.
Domain-agnostic interpretive lens for network processing.
Control smoothing_seconds
Controls of a ModalDampingOperator, each a number or a mapped node.