daisysp::StringVoice¶
Extended Karplus-Strong, with all the niceties from Rings. More...
#include <stringvoice.h>
Public Functions¶
Name | |
---|---|
StringVoice() | |
~StringVoice() | |
void | Init(float sample_rate) |
void | Reset() |
float | Process(bool trigger =false) |
void | SetSustain(bool sustain) |
void | Trig() |
void | SetFreq(float freq) |
void | SetAccent(float accent) |
void | SetStructure(float structure) |
void | SetBrightness(float brightness) |
void | SetDamping(float damping) |
float | GetAux() |
Detailed Description¶
Extended Karplus-Strong, with all the niceties from Rings.
Author: Ben Sergentanis
Date: Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/physical_modelling/string_voice.h
and pichenettes/eurorack/plaits/dsp/physical_modelling/string_voice.cc
to an independent module.
Original code written by Emilie Gillet in 2016.
Public Functions Documentation¶
function StringVoice¶
function ~StringVoice¶
function Init¶
Parameters:
- sample_rate Audio engine sample rate
Initialize the module
function Reset¶
Reset the string oscillator
function Process¶
Parameters:
- trigger Strike the string. Defaults to false.
Get the next sample
function SetSustain¶
Parameters:
- sustain True turns on the noise.
Continually excite the string with noise.
function Trig¶
Strike the string.
function SetFreq¶
Parameters:
- freq Frequency in Hz.
Set the string root frequency.
function SetAccent¶
Parameters:
- accent Works 0-1.
Hit the string a bit harder. Influences brightness and decay.
function SetStructure¶
Parameters:
- structure Works 0-1. 0-.26 is curved bridge, .26-1 is dispersion.
Changes the string's nonlinearity (string type).
function SetBrightness¶
Parameters:
- brightness Works best 0-1
Set the brighness of the string, and the noise density.
function SetDamping¶
Parameters:
- damping Works best 0-1. Full damp is only achieved with full accent.
How long the resonant body takes to decay relative to the accent level.
function GetAux¶
Get the raw excitation signal. Must call Process() first.
---¶
Updated on 2024-01-03 at 19:38:46 +0000