DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::FractalRandomGenerator< T, order > Class Template Reference

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

#include <fractal_noise.h>

Public Member Functions

void Init (float sample_rate)
 
float Process ()
 
void SetFreq (float freq)
 
void SetColor (float color)
 

Detailed Description

template<typename T, int order>
class daisysp::FractalRandomGenerator< T, order >

Fractal Noise, stacks octaves of a noise source.

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.

Member Function Documentation

◆ Init()

template<typename T , int order>
void daisysp::FractalRandomGenerator< T, order >::Init ( float sample_rate)
inline

Initialize the module

Parameters
sample_rateAudio engine sample rate.

◆ Process()

template<typename T , int order>
float daisysp::FractalRandomGenerator< T, order >::Process ( )
inline

Get the next sample.

◆ SetColor()

template<typename T , int order>
void daisysp::FractalRandomGenerator< T, order >::SetColor ( float color)
inline

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

◆ SetFreq()

template<typename T , int order>
void daisysp::FractalRandomGenerator< T, order >::SetFreq ( float freq)
inline

Set the lowest noise frequency.

Parameters
freqFrequency of the lowest noise source in Hz.

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