Skip to content

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

float daisysp::Particle::GetNoise () 

Get the raw noise output. Must call Process() first.


function Init

void daisysp::Particle::Init (
    float sample_rate
) 

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate.

function Particle

inline daisysp::Particle::Particle () 

function Process

float daisysp::Particle::Process () 

Get the next sample


function SetDensity

void daisysp::Particle::SetDensity (
    float density
) 

Noise density

Parameters:

  • Works 0-1.

function SetFreq

void daisysp::Particle::SetFreq (
    float frequency
) 

Set the resonant filter frequency

Parameters:

  • freq Frequency in Hz

function SetGain

void daisysp::Particle::SetGain (
    float gain
) 

Overall module gain

Parameters:

  • Works 0-1.

function SetRandomFreq

void daisysp::Particle::SetRandomFreq (
    float freq
) 

How often to randomize filter frequency

Parameters:

  • freq Frequency in Hz.

function SetResonance

void daisysp::Particle::SetResonance (
    float resonance
) 

Set the filter resonance

Parameters:

  • resonance Works 0-1

function SetSpread

void daisysp::Particle::SetSpread (
    float spread
) 

How much to randomize the set filter frequency.

Parameters:

  • spread Works over positive numbers.

function SetSync

void daisysp::Particle::SetSync (
    bool sync
) 

Force randomize the frequency.

Parameters:

  • sync True to randomize freq.

function ~Particle

inline daisysp::Particle::~Particle () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Noise/particle.h