Comb filter / KS string.
More...
#include <KarplusString.h>
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.
◆ Init()
void String::Init |
( |
float | sample_rate | ) |
|
Initialize the module.
- Parameters
-
sample_rate | Audio engine sample rate |
◆ Process()
float String::Process |
( |
const float | in | ) |
|
Get the next floating point sample
- Parameters
-
in | Signal to excite the string. |
◆ Reset()
◆ SetBrightness()
void String::SetBrightness |
( |
float | brightness | ) |
|
Set the string's overall brightness
- Parameters
-
◆ SetDamping()
void String::SetDamping |
( |
float | damping | ) |
|
Set the string's decay time.
- Parameters
-
◆ SetFreq()
void String::SetFreq |
( |
float | freq | ) |
|
Set the string frequency.
- Parameters
-
◆ SetNonLinearity()
void String::SetNonLinearity |
( |
float | non_linearity_amount | ) |
|
Set the string's behavior.
- Parameters
-
-1 | to 0 is curved bridge, 0 to 1 is dispersion. |
The documentation for this class was generated from the following files:
- Source/PhysicalModeling/KarplusString.h
- Source/PhysicalModeling/KarplusString.cpp