Class daisysp::ModalVoice¶
ClassList > daisysp > ModalVoice
Simple modal synthesis voice with a mallet exciter: click -> LPF -> resonator. More...
#include <modalvoice.h>
Public Functions¶
Type | Name |
---|---|
float | GetAux () |
void | Init (float sample_rate) |
ModalVoice () |
|
float | Process (bool trigger=false) |
void | SetAccent (float accent) |
void | SetBrightness (float brightness) |
void | SetDamping (float damping) |
void | SetFreq (float freq) |
void | SetStructure (float structure) |
void | SetSustain (bool sustain) |
void | Trig () |
~ModalVoice () |
Detailed Description¶
Author:
Ben Sergentanis
Date:
Jan 2021 The click can be replaced by continuous white noise.
Ported from pichenettes/eurorack/plaits/dsp/physical_modelling/modal_voice.h and pichenettes/eurorack/plaits/dsp/physical_modelling/modal_voice.cc to an independent module. Original code written by Emilie Gillet in 2016.
Public Functions Documentation¶
function GetAux¶
Get the raw excitation signal. Must call Process() first.
function Init¶
Initialize the module
Parameters:
sample_rate
Audio engine sample rate
function ModalVoice¶
function Process¶
Get the next sample
Parameters:
trigger
Strike the resonator. Defaults to false.
function SetAccent¶
Hit the resonator a bit harder.
Parameters:
accent
Works 0-1.
function SetBrightness¶
Set the brighness of the resonator, and the noise density.
Parameters:
brightness
Works best 0-1
function SetDamping¶
How long the resonant body takes to decay.
Parameters:
damping
Works best 0-1
function SetFreq¶
Set the resonator root frequency.
Parameters:
freq
Frequency in Hz.
function SetStructure¶
Changes the general charater of the resonator (stiffness, brightness)
Parameters:
structure
Works best from 0-1
function SetSustain¶
Continually excite the resonator with noise.
Parameters:
sustain
True turns on the noise.
function Trig¶
Strike the resonator.
function ~ModalVoice¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/PhysicalModeling/modalvoice.h