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

◆ configure()

void MayaFlux::Kinesis::Stochastic::Stochastic::configure ( const std::string &  key,
std::any  value 
)

Configures algorithm-specific parameters.

Parameters
keyParameter name
valueParameter value

Standard parameters (algorithm-dependent):

  • NORMAL: "spread" (double) - std deviation divisor
  • PERLIN: "octaves" (int), "persistence" (double), "frequency" (double)
  • GENDY: "breakpoints" (int), "amplitude_dist" (Algorithm), "duration_dist" (Algorithm)
  • BROWNIAN: "step_size" (double), "bounds_mode" (string)
  • PINK/BLUE: "pole_count" (int)

Interactive/Live parameters (future-ready):

  • GENDY: "breakpoint_amplitudes" (std::vector<double>) - inject external breakpoints
  • GENDY: "breakpoint_durations" (std::vector<double>) - inject temporal structure
  • PERLIN: "permutation_table" (std::vector<int>) - custom noise characteristics
  • ANY: "modulation_source" (std::function<double()>) - external control signal
  • ANY: "inference_callback" (std::function<void(GeneratorState&)>) - ML-driven state

Dynamic reconfiguration is fully supported - call anytime to alter behavior.

Definition at line 32 of file Stochastic.cpp.

33{
34 m_config[key] = std::move(value);
35 m_dist_dirty = true;
36}
std::map< std::string, std::any > m_config

References m_config, and m_dist_dirty.

Referenced by MayaFlux::Kinesis::Stochastic::brownian(), MayaFlux::Kinesis::Stochastic::gaussian(), MayaFlux::Kinesis::Stochastic::gendy(), MayaFlux::Kinesis::Stochastic::perlin(), and MayaFlux::Nodes::Generator::Random::set_normal_spread().

+ Here is the caller graph for this function: