41 double range_start,
double range_end,
double normal_spread)
43 , distribution_type(type)
44 , amplitude(amplitude)
45 , range_start(range_start)
46 , range_end(range_end)
47 , normal_spread(normal_spread)
93 std::span<const float> gpu_data)
94 :
RandomContext(value, type, amplitude, range_start, range_end, normal_spread)
140 inline void configure(
const std::string& key, std::any value) { m_generator.configure(key, std::move(value)); }
151 double process_sample(
double input = 0.)
override;
161 std::vector<double> process_batch(
unsigned int num_samples)
override;
172 void set_normal_spread(
double spread);
182 void set_range(
double start,
double end);
199 void update_context(
double value)
override;
209 void notify_tick(
double value)
override;
226 double m_current_start { -1.0 };
231 double m_current_end { 1.0 };
239 double m_normal_spread { 1.0 };
Unified generative infrastructure for stochastic and procedural algorithms.
Base class for all signal and pattern generators in Maya Flux.
RandomContextGpu(double value, Kinesis::Stochastic::Algorithm type, double amplitude, double range_start, double range_end, double normal_spread, std::span< const float > gpu_data)
RandomContext(double value, Kinesis::Stochastic::Algorithm type, double amplitude, double range_start, double range_end, double normal_spread)
Constructs a RandomContext with the current generator state.
double normal_spread
Current variance parameter for normal distribution.
double amplitude
Current amplitude scaling factor.
double range_end
Current upper bound of the range.
double range_start
Current lower bound of the range.
Kinesis::Stochastic::Algorithm distribution_type
Current distribution type.
Specialized context for stochastic generator callbacks.
void printGraph() override
Prints a visual representation of the generated pattern.
void printCurrent() override
Prints the current state and parameters of the generator.
Kinesis::Stochastic::Stochastic m_generator
Core stochastic generator instance.
Kinesis::Stochastic::Algorithm m_type
Current probability distribution algorithm.
~Random() override=default
void save_state() override
Saves the node's current state for later restoration Recursively cascades through all connected modul...
void restore_state() override
Restores the node's state from the last save Recursively cascades through all connected modulator nod...
void configure(const std::string &key, std::any value)
Configures distribution parameters.
RandomContextGpu m_context_gpu
Node wrapper for Kinesis::Stochastic - signal-rate stochastic generation.
GPU-uploadable 1D array data interface.
Base context class for node callbacks.
Algorithm
Stochastic and procedural generation algorithms.