Simple modal synthesis voice with a mallet exciter: click -> LPF -> resonator.
More...
#include <modalvoice.h>
Simple modal synthesis voice with a mallet exciter: click -> LPF -> resonator.
- 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.
◆ GetAux()
float ModalVoice::GetAux |
( |
| ) |
|
Get the raw excitation signal. Must call Process() first.
◆ Init()
void ModalVoice::Init |
( |
float | sample_rate | ) |
|
Initialize the module
- Parameters
-
sample_rate | Audio engine sample rate |
◆ Process()
float ModalVoice::Process |
( |
bool | trigger = false | ) |
|
Get the next sample
- Parameters
-
trigger | Strike the resonator. Defaults to false. |
◆ SetAccent()
void ModalVoice::SetAccent |
( |
float | accent | ) |
|
Hit the resonator a bit harder.
- Parameters
-
◆ SetBrightness()
void ModalVoice::SetBrightness |
( |
float | brightness | ) |
|
Set the brighness of the resonator, and the noise density.
- Parameters
-
◆ SetDamping()
void ModalVoice::SetDamping |
( |
float | damping | ) |
|
How long the resonant body takes to decay.
- Parameters
-
◆ SetFreq()
void ModalVoice::SetFreq |
( |
float | freq | ) |
|
Set the resonator root frequency.
- Parameters
-
◆ SetStructure()
void ModalVoice::SetStructure |
( |
float | structure | ) |
|
Changes the general charater of the resonator (stiffness, brightness)
- Parameters
-
structure | Works best from 0-1 |
◆ SetSustain()
void ModalVoice::SetSustain |
( |
bool | sustain | ) |
|
Continually excite the resonator with noise.
- Parameters
-
sustain | True turns on the noise. |
◆ Trig()
void ModalVoice::Trig |
( |
| ) |
|
The documentation for this class was generated from the following files:
- Source/PhysicalModeling/modalvoice.h
- Source/PhysicalModeling/modalvoice.cpp