MayaFlux 0.1.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 14 of file Stochastic.cpp.

15{
18 return m_last_output;
19}
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.
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378

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

+ Here is the call graph for this function: