|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Main generator class for analog-style random modulation. More...
#include <AnalogRandom.h>
Public Member Functions | |
| Generator () noexcept | |
| Generator (std::uint64_t seed) noexcept | |
| Generator (Generator &&other) noexcept | |
| Generator & | operator= (Generator &&other) noexcept |
| Generator (const Generator &)=delete | |
| Generator & | operator= (const Generator &)=delete |
| void | prepare (double sampleRate) noexcept |
| Prepare the generator with the audio sample rate. | |
| void | reset () noexcept |
| Reset internal state (phase, smoothing, noise states). | |
| void | reseed (std::uint64_t newSeed) noexcept |
| Request a lock-free reseed of the internal PRNG. | |
| Real | getNextSample () noexcept |
| Generate and return the next modulation sample. | |
| void | getNextBlock (std::span< Real > outputBuffer) noexcept |
| Generate a block of modulation samples. | |
| Real | getCurrentValue () const noexcept |
| Real | getPhase () const noexcept |
| void | setNoiseType (NoiseType type) noexcept |
| void | setRateHz (Real rateInHz) noexcept |
| void | setRateBPM (double bpm, BpmDivision division) noexcept |
| void | updateBPM (double newBpm) noexcept |
| template<typename T > | |
| void | setRange (T min, T max) noexcept |
| Set the output range for values. Safe from tearing. | |
| void | setSmoothing (bool shouldBeEnabled, Real timeInMs=static_cast< Real >(50.0)) noexcept |
| void | setQuantization (Real step) noexcept |
| void | setAnalogDefault (AnalogComponent component) noexcept |
| template<typename Int > | |
| Int | getNextDiscrete (Int imin, Int imax) noexcept |
| int | getNextDiscreteInt (int imin, int imax) noexcept |
Main generator class for analog-style random modulation.
| Real | Floating point type to represent values (float or double). |
Definition at line 149 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 155 of file AnalogRandom.h.
|
inlineexplicitnoexcept |
Definition at line 160 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 170 of file AnalogRandom.h.
|
delete |
|
inlinenoexcept |
Definition at line 367 of file AnalogRandom.h.
|
inlinenoexcept |
Generate a block of modulation samples.
| outputBuffer | C++20 span representing the destination buffer. |
Definition at line 311 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 471 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 491 of file AnalogRandom.h.
|
inlinenoexcept |
Generate and return the next modulation sample.
Definition at line 270 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 368 of file AnalogRandom.h.
|
delete |
|
inlinenoexcept |
Definition at line 195 of file AnalogRandom.h.
|
inlinenoexcept |
Prepare the generator with the audio sample rate.
| sampleRate | Sample rate in Hz (must be > 0). |
Definition at line 232 of file AnalogRandom.h.
|
inlinenoexcept |
Request a lock-free reseed of the internal PRNG.
| newSeed | New seed value. Applied on the next audio tick. |
Definition at line 255 of file AnalogRandom.h.
|
inlinenoexcept |
Reset internal state (phase, smoothing, noise states).
Definition at line 241 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 433 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 374 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 427 of file AnalogRandom.h.
|
inlinenoexcept |
Set the output range for values. Safe from tearing.
Definition at line 401 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 385 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 379 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 409 of file AnalogRandom.h.
|
inlinenoexcept |
Definition at line 392 of file AnalogRandom.h.