Resonant Body Simulation.
More...
#include <resonator.h>
Resonant Body Simulation.
- Author
- Ported by Ben Sergentanis
- Date
- Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/physical_modelling/resonator.h
to an independent module.
Original code written by Emilie Gillet in 2016.
◆ Init()
void Resonator::Init |
( |
float | position, |
|
|
int | resolution, |
|
|
float | sample_rate ) |
Initialize the module
- Parameters
-
position | Offset the phase of the amplitudes. 0-1 |
resolution | Quality vs speed scalar |
sample_rate | Samplerate of the audio engine being run. |
◆ Process()
float Resonator::Process |
( |
const float | in | ) |
|
Get the next sample_rate
- Parameters
-
in | The signal to excited the resonant body |
◆ SetBrightness()
void Resonator::SetBrightness |
( |
float | brightness | ) |
|
Set the brighness of the resonator
- Parameters
-
◆ SetDamping()
void Resonator::SetDamping |
( |
float | damping | ) |
|
How long the resonant body takes to decay.
- Parameters
-
◆ SetFreq()
void Resonator::SetFreq |
( |
float | freq | ) |
|
◆ SetStructure()
void Resonator::SetStructure |
( |
float | structure | ) |
|
Changes the general charater of the resonator (stiffness, brightness)
- Parameters
-
structure | Works best from 0-1 |
The documentation for this class was generated from the following files:
- Source/PhysicalModeling/resonator.h
- Source/PhysicalModeling/resonator.cpp