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

◆ get_metadata()

std::unordered_map< std::string, std::string > MayaFlux::Nodes::Network::WaveguideNetwork::get_metadata ( ) const
overridevirtual

Get network metadata for debugging/visualization.

Returns
Map of property names to string representations

Subclasses can override to expose internal state:

  • Particle count, average velocity
  • Modal frequencies, decay times
  • Waveguide delay lengths etc.

Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 486 of file WaveguideNetwork.cpp.

487{
488 auto metadata = NodeNetwork::get_metadata();
489
490 metadata["type"] = std::string(Reflect::enum_to_string(m_type));
491 metadata["fundamental"] = std::to_string(m_fundamental) + " Hz";
492 metadata["delay_length"] = std::to_string(m_delay_length_integer)
493 + " + " + std::to_string(m_delay_length_fraction) + " samples";
494 metadata["loss_factor"] = std::to_string(get_loss_factor());
495 metadata["pickup_position"] = std::to_string(get_pickup_position());
496
497 metadata["exciter_type"] = std::string(Reflect::enum_to_string(m_exciter_type));
498
499 return metadata;
500}
virtual std::unordered_map< std::string, std::string > get_metadata() const
Get network metadata for debugging/visualization.
double get_pickup_position() const
Get current pickup position.
double get_loss_factor() const
Get current loss factor.
constexpr std::string_view enum_to_string(EnumType value) noexcept
Universal enum to string converter using magic_enum (original case)

References MayaFlux::Reflect::enum_to_string(), get_loss_factor(), MayaFlux::Nodes::Network::NodeNetwork::get_metadata(), get_pickup_position(), m_delay_length_fraction, m_delay_length_integer, m_exciter_type, m_fundamental, and m_type.

+ Here is the call graph for this function: