Class daisysp::Particle¶
ClassList > daisysp > Particle
Random impulse train processed by a resonant filter. More...
#include <particle.h>
Public Functions¶
Type | Name |
---|---|
float | GetNoise () |
void | Init (float sample_rate) |
Particle () |
|
float | Process () |
void | SetDensity (float density) |
void | SetFreq (float frequency) |
void | SetGain (float gain) |
void | SetRandomFreq (float freq) |
void | SetResonance (float resonance) |
void | SetSpread (float spread) |
void | SetSync (bool sync) |
~Particle () |
Detailed Description¶
Author:
Ported by Ben Sergentanis
Date:
Jan 2021 Noise processed by a sample and hold running at a target frequency.
Ported from pichenettes/eurorack/plaits/dsp/noise/particle.h to an independent module. Original code written by Emilie Gillet in 2016.
Public Functions Documentation¶
function GetNoise¶
Get the raw noise output. Must call Process() first.
function Init¶
Initialize the module
Parameters:
sample_rate
Audio engine sample rate.
function Particle¶
function Process¶
Get the next sample
function SetDensity¶
Noise density
Parameters:
Works
0-1.
function SetFreq¶
Set the resonant filter frequency
Parameters:
freq
Frequency in Hz
function SetGain¶
Overall module gain
Parameters:
Works
0-1.
function SetRandomFreq¶
How often to randomize filter frequency
Parameters:
freq
Frequency in Hz.
function SetResonance¶
Set the filter resonance
Parameters:
resonance
Works 0-1
function SetSpread¶
How much to randomize the set filter frequency.
Parameters:
spread
Works over positive numbers.
function SetSync¶
Force randomize the frequency.
Parameters:
sync
True to randomize freq.
function ~Particle¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Noise/particle.h