MayaFlux 0.4.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 494 of file WaveguideNetwork.cpp.

495{
496 auto metadata = NodeNetwork::get_metadata();
497
498 metadata["type"] = std::string(Reflect::enum_to_string(m_type));
499 metadata["fundamental"] = std::to_string(m_fundamental) + " Hz";
500 metadata["delay_length"] = std::to_string(m_delay_length_integer)
501 + " + " + std::to_string(m_delay_length_fraction) + " samples";
502 metadata["loss_factor"] = std::to_string(get_loss_factor());
503 metadata["pickup_position"] = std::to_string(get_pickup_position());
504
505 metadata["exciter_type"] = std::string(Reflect::enum_to_string(m_exciter_type));
506
507 return metadata;
508}
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: