DaisySP
Loading...
Searching...
No Matches
daisysp::Particle Class Reference

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)
 

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.

Member Function Documentation

◆ 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_rateAudio engine sample rate.

◆ Process()

float Particle::Process ( )

Get the next sample

◆ SetDensity()

void Particle::SetDensity ( float density)

Noise density

Parameters
Works0-1.

◆ SetFreq()

void Particle::SetFreq ( float frequency)

Set the resonant filter frequency

Parameters
freqFrequency in Hz

◆ SetGain()

void Particle::SetGain ( float gain)

Overall module gain

Parameters
Works0-1.

◆ SetRandomFreq()

void Particle::SetRandomFreq ( float freq)

How often to randomize filter frequency

Parameters
freqFrequency in Hz.

◆ SetResonance()

void Particle::SetResonance ( float resonance)

Set the filter resonance

Parameters
resonanceWorks 0-1

◆ SetSpread()

void Particle::SetSpread ( float spread)

How much to randomize the set filter frequency.

Parameters
spreadWorks over positive numbers.

◆ SetSync()

void Particle::SetSync ( bool sync)

Force randomize the frequency.

Parameters
syncTrue to randomize freq.

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