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

Comb filter / KS string. More...

#include <KarplusString.h>

Public Member Functions

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

Detailed Description

Comb filter / KS string.

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.

Member Function Documentation

◆ Init()

void String::Init ( float sample_rate)

Initialize the module.

Parameters
sample_rateAudio engine sample rate

◆ Process()

float String::Process ( const float in)

Get the next floating point sample

Parameters
inSignal to excite the string.

◆ Reset()

void String::Reset ( )

Clear the delay line

◆ SetBrightness()

void String::SetBrightness ( float brightness)

Set the string's overall brightness

Parameters
Works0-1.

◆ SetDamping()

void String::SetDamping ( float damping)

Set the string's decay time.

Parameters
dampingWorks 0-1.

◆ SetFreq()

void String::SetFreq ( float freq)

Set the string frequency.

Parameters
freqFrequency in Hz

◆ SetNonLinearity()

void String::SetNonLinearity ( float non_linearity_amount)

Set the string's behavior.

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

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