Skip to content

Class daisysp::SmoothRandomGenerator

ClassList > daisysp > SmoothRandomGenerator

Smooth random generator for internal modulation. .More...

  • #include <smooth_random.h>

Public Functions

Type Name
void Init (float sample_rate)
float Process ()
void SetFreq (float freq)
SmoothRandomGenerator ()
~SmoothRandomGenerator ()

Detailed Description

Author:

Ported by Ben Sergentanis

Date:

Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/noise/smooth_random_generator.h to an independent module. Original code written by Emilie Gillet in 2016.

Public Functions Documentation

function Init

inline void daisysp::SmoothRandomGenerator::Init (
    float sample_rate
) 

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate.

function Process

inline float daisysp::SmoothRandomGenerator::Process () 

Get the next float. Ranges from -1 to 1.


function SetFreq

inline void daisysp::SmoothRandomGenerator::SetFreq (
    float freq
) 

How often to slew to a new random value

Parameters:

  • freq Rate in Hz

function SmoothRandomGenerator

inline daisysp::SmoothRandomGenerator::SmoothRandomGenerator () 

function ~SmoothRandomGenerator

inline daisysp::SmoothRandomGenerator::~SmoothRandomGenerator () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Utility/smooth_random.h