Class daisysp::Resonator¶
ClassList > daisysp > Resonator
Resonant Body Simulation. More...
#include <resonator.h>
Public Functions¶
| Type | Name |
|---|---|
| void | Init (float position, int resolution, float sample_rate) |
| float | Process (const float in) |
| Resonator () |
|
| void | SetBrightness (float brightness) |
| void | SetDamping (float damping) |
| void | SetFreq (float freq) |
| void | SetStructure (float structure) |
| ~Resonator () |
Detailed Description¶
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.
Public Functions Documentation¶
function Init¶
Initialize the module
Parameters:
positionOffset the phase of the amplitudes. 0-1resolutionQuality vs speed scalarsample_rateSamplerate of the audio engine being run.
function Process¶
Get the next sample_rate
Parameters:
inThe signal to excited the resonant body
function Resonator¶
function SetBrightness¶
Set the brighness of the resonator
Parameters:
brightnessWorks best 0-1
function SetDamping¶
How long the resonant body takes to decay.
Parameters:
dampingWorks best 0-1
function SetFreq¶
Resonator frequency.
Parameters:
freqFrequency in Hz.
function SetStructure¶
Changes the general charater of the resonator (stiffness, brightness)
Parameters:
structureWorks best from 0-1
function ~Resonator¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/PhysicalModeling/resonator.h