Skip to content

Class daisysp::String

ClassList > daisysp > String

Comb filter / KS string.More...

  • #include <KarplusString.h>

Public Functions

Type Name
void Init (float sample_rate)
float Process (const float in)
void Reset ()
void SetBrightness (float brightness)
void SetDamping (float damping)
void SetFreq (float freq)
void SetNonLinearity (float non_linearity_amount)
String ()
~String ()

Detailed Description

Author:

Ben Sergentanis

Date:

Jan 2021 "Lite" version of the implementation used in Rings

Ported from pichenettes/eurorack/plaits/dsp/oscillator/formant_oscillator.h to an independent module. Original code written by Emilie Gillet in 2016.

Public Functions Documentation

function Init

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

Initialize the module.

Parameters:

  • sample_rate Audio engine sample rate

function Process

float daisysp::String::Process (
    const  float in
) 

Get the next floating point sample

Parameters:

  • in Signal to excite the string.

function Reset

void daisysp::String::Reset () 

Clear the delay line


function SetBrightness

void daisysp::String::SetBrightness (
    float brightness
) 

Set the string's overall brightness

Parameters:

  • Works 0-1.

function SetDamping

void daisysp::String::SetDamping (
    float damping
) 

Set the string's decay time.

Parameters:

  • damping Works 0-1.

function SetFreq

void daisysp::String::SetFreq (
    float freq
) 

Set the string frequency.

Parameters:

  • freq Frequency in Hz

function SetNonLinearity

void daisysp::String::SetNonLinearity (
    float non_linearity_amount
) 

Set the string's behavior.

Parameters:

  • -1 to 0 is curved bridge, 0 to 1 is dispersion.

function String

inline daisysp::String::String () 

function ~String

inline daisysp::String::~String () 


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