Vital
Loading...
Searching...
No Matches
vital::RandomValues Class Reference

A singleton class that generates and stores random poly_float values. More...

#include <synth_oscillator.h>

Public Member Functions

const poly_floatbuffer ()
 Get the internal random data buffer.
 

Static Public Member Functions

static RandomValuesinstance ()
 Retrieve the singleton instance of RandomValues.
 

Static Public Attributes

static constexpr int kSeed = 0x4
 Seed value for internal random generator.
 

Detailed Description

A singleton class that generates and stores random poly_float values.

These values are used for randomized amplitude morphing, etc.

Member Function Documentation

◆ buffer()

const poly_float * vital::RandomValues::buffer ( )
inline

Get the internal random data buffer.

Returns
A pointer to the random poly_float array.

◆ instance()

static RandomValues * vital::RandomValues::instance ( )
inlinestatic

Retrieve the singleton instance of RandomValues.

Returns
A pointer to the unique RandomValues instance.

Member Data Documentation

◆ kSeed

int vital::RandomValues::kSeed = 0x4
staticconstexpr

Seed value for internal random generator.


The documentation for this class was generated from the following file: