daisysp::Particle¶
Random impulse train processed by a resonant filter. More...
#include <particle.h>
Public Functions¶
Name | |
---|---|
Particle() | |
~Particle() | |
void | Init(float sample_rate) |
float | Process() |
float | GetNoise() |
void | SetFreq(float frequency) |
void | SetResonance(float resonance) |
void | SetRandomFreq(float freq) |
void | SetDensity(float density) |
void | SetGain(float gain) |
void | SetSpread(float spread) |
void | SetSync(bool sync) |
Detailed Description¶
Random impulse train processed by a resonant filter.
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 Particle¶
function ~Particle¶
function Init¶
Parameters:
- sample_rate Audio engine sample rate.
Initialize the module
function Process¶
Get the next sample
function GetNoise¶
Get the raw noise output. Must call Process() first.
function SetFreq¶
Parameters:
- freq Frequency in Hz
Set the resonant filter frequency
function SetResonance¶
Parameters:
- resonance Works 0-1
Set the filter resonance
function SetRandomFreq¶
Parameters:
- freq Frequency in Hz.
How often to randomize filter frequency
function SetDensity¶
Parameters:
- Works 0-1.
Noise density
function SetGain¶
Parameters:
- Works 0-1.
Overall module gain
function SetSpread¶
Parameters:
- spread Works over positive numbers.
How much to randomize the set filter frequency.
function SetSync¶
Parameters:
- sync True to randomize freq.
Force randomize the frequency.
---¶
Updated on 2024-01-03 at 19:38:46 +0000