Random impulse train processed by a resonant filter.
More...
#include <particle.h>
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.
◆ GetNoise()
float Particle::GetNoise |
( |
| ) |
|
Get the raw noise output. Must call Process() first.
◆ Init()
void Particle::Init |
( |
float | sample_rate | ) |
|
Initialize the module
- Parameters
-
sample_rate | Audio engine sample rate. |
◆ Process()
float Particle::Process |
( |
| ) |
|
◆ SetDensity()
void Particle::SetDensity |
( |
float | density | ) |
|
◆ SetFreq()
void Particle::SetFreq |
( |
float | frequency | ) |
|
Set the resonant filter frequency
- Parameters
-
◆ SetGain()
void Particle::SetGain |
( |
float | gain | ) |
|
Overall module gain
- Parameters
-
◆ SetRandomFreq()
void Particle::SetRandomFreq |
( |
float | freq | ) |
|
How often to randomize filter frequency
- Parameters
-
◆ SetResonance()
void Particle::SetResonance |
( |
float | resonance | ) |
|
Set the filter resonance
- Parameters
-
◆ SetSpread()
void Particle::SetSpread |
( |
float | spread | ) |
|
How much to randomize the set filter frequency.
- Parameters
-
spread | Works over positive numbers. |
◆ SetSync()
void Particle::SetSync |
( |
bool | sync | ) |
|
Force randomize the frequency.
- Parameters
-
sync | True to randomize freq. |
The documentation for this class was generated from the following files: