DaisySP
|
Extended Karplus-Strong, with all the niceties from Rings. More...
#include <stringvoice.h>
Public Member Functions | |
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 () |
Extended Karplus-Strong, with all the niceties from Rings.
Initialize the module
sample_rate | Audio engine sample rate |
Get the next sample
trigger | Strike the string. Defaults to false. |
void StringVoice::Reset | ( | ) |
Reset the string oscillator
Hit the string a bit harder. Influences brightness and decay.
accent | Works 0-1. |
Set the brighness of the string, and the noise density.
brightness | Works best 0-1 |
How long the resonant body takes to decay relative to the accent level.
damping | Works best 0-1. Full damp is only achieved with full accent. |
Set the string root frequency.
freq | Frequency in Hz. |
Changes the string's nonlinearity (string type).
structure | Works 0-1. 0-.26 is curved bridge, .26-1 is dispersion. |
Continually excite the string with noise.
sustain | True turns on the noise. |
void StringVoice::Trig | ( | ) |
Strike the string.