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

◆ process_sample()

double MayaFlux::Nodes::Generator::Stochastics::Random::process_sample ( double  input = 0.)
overridevirtual

Generates a single stochastic value.

Parameters
inputInput value (can be used for distribution modulation)
Returns
Generated stochastic value

This method generates a single value according to the current distribution settings. The input parameter can be used to modulate or influence the distribution in advanced applications.

Implements MayaFlux::Nodes::Node.

Definition at line 19 of file Stochastic.cpp.

20{
23 && !m_networked_node) {
25 }
26 return m_last_output;
27}
double m_current_start
Lower bound of the current output range.
double m_current_end
Upper bound of the current output range.
double random_sample(double start, double end)
Generates a stochastic value within a specified range.
void notify_tick(double value) override
Notifies all registered callbacks about a new value.
bool m_state_saved
tracks if the node's state has been saved by a snapshot operation
Definition Node.hpp:426
bool m_networked_node
Flag indicating if the node is part of a NodeNetwork This flag is used to disable event firing when t...
Definition Node.hpp:421
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:374
bool m_fire_events_during_snapshot
Internal flag controlling whether notify_tick fires during state snapshots Default: false (events don...
Definition Node.hpp:448

References m_current_end, m_current_start, MayaFlux::Nodes::Node::m_fire_events_during_snapshot, MayaFlux::Nodes::Node::m_last_output, MayaFlux::Nodes::Node::m_networked_node, MayaFlux::Nodes::Node::m_state_saved, notify_tick(), and random_sample().

+ Here is the call graph for this function: