Skip to content

Class daisysp::FractalRandomGenerator

template <typename T, int order>

ClassList > daisysp > FractalRandomGenerator

Fractal Noise, stacks octaves of a noise source. More...

  • #include <fractal_noise.h>

Public Functions

Type Name
FractalRandomGenerator ()
void Init (float sample_rate)
float Process ()
void SetColor (float color)
void SetFreq (float freq)
~FractalRandomGenerator ()

Detailed Description

Author:

Ported by Ben Sergentanis

Date:

Jan 2021 T is the noise source to use. T must have SetFreq() and Init(sample_rate) functions. Order is the number of noise sources to stack.

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

Public Functions Documentation

function FractalRandomGenerator

inline daisysp::FractalRandomGenerator::FractalRandomGenerator () 

function Init

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

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate.

function Process

inline float daisysp::FractalRandomGenerator::Process () 

Get the next sample.


function SetColor

inline void daisysp::FractalRandomGenerator::SetColor (
    float color
) 

Sets the amount of high frequency noise. ** Works 0-1. 1 is the brightest, and 0 is the darkest.


function SetFreq

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

Set the lowest noise frequency.

Parameters:

  • freq Frequency of the lowest noise source in Hz.

function ~FractalRandomGenerator

inline daisysp::FractalRandomGenerator::~FractalRandomGenerator () 


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