DaisySP
Loading...
Searching...
No Matches
daisysp::Resonator Class Reference

Resonant Body Simulation. More...

#include <resonator.h>

Public Member Functions

void Init (float position, int resolution, float sample_rate)
 
float Process (const float in)
 
void SetFreq (float freq)
 
void SetStructure (float structure)
 
void SetBrightness (float brightness)
 
void SetDamping (float damping)
 

Detailed Description

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.

Member Function Documentation

◆ Init()

void Resonator::Init ( float position,
int resolution,
float sample_rate )

Initialize the module

Parameters
positionOffset the phase of the amplitudes. 0-1
resolutionQuality vs speed scalar
sample_rateSamplerate of the audio engine being run.

◆ Process()

float Resonator::Process ( const float in)

Get the next sample_rate

Parameters
inThe signal to excited the resonant body

◆ SetBrightness()

void Resonator::SetBrightness ( float brightness)

Set the brighness of the resonator

Parameters
brightnessWorks best 0-1

◆ SetDamping()

void Resonator::SetDamping ( float damping)

How long the resonant body takes to decay.

Parameters
dampingWorks best 0-1

◆ SetFreq()

void Resonator::SetFreq ( float freq)

Resonator frequency.

Parameters
freqFrequency in Hz.

◆ SetStructure()

void Resonator::SetStructure ( float structure)

Changes the general charater of the resonator (stiffness, brightness)

Parameters
structureWorks best from 0-1

The documentation for this class was generated from the following files: