DaisySP
|
Random impulse train processed by a resonant filter. More...
#include <particle.h>
Public Member Functions | |
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) |
Random impulse train processed by a resonant filter.
Initialize the module
sample_rate | Audio engine sample rate. |
float Particle::Process | ( | ) |
Get the next sample
Set the resonant filter frequency
freq | Frequency in Hz |
How often to randomize filter frequency
freq | Frequency in Hz. |
Set the filter resonance
resonance | Works 0-1 |
How much to randomize the set filter frequency.
spread | Works over positive numbers. |
Force randomize the frequency.
sync | True to randomize freq. |