Skip to content

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

void daisysp::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.

function Process

float daisysp::Resonator::Process (
    const  float in
) 

Get the next sample_rate

Parameters:

  • in The signal to excited the resonant body

function Resonator

inline daisysp::Resonator::Resonator () 

function SetBrightness

void daisysp::Resonator::SetBrightness (
    float brightness
) 

Set the brighness of the resonator

Parameters:

  • brightness Works best 0-1

function SetDamping

void daisysp::Resonator::SetDamping (
    float damping
) 

How long the resonant body takes to decay.

Parameters:

  • damping Works best 0-1

function SetFreq

void daisysp::Resonator::SetFreq (
    float freq
) 

Resonator frequency.

Parameters:

  • freq Frequency in Hz.

function SetStructure

void daisysp::Resonator::SetStructure (
    float structure
) 

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

Parameters:

  • structure Works best from 0-1

function ~Resonator

inline daisysp::Resonator::~Resonator () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/PhysicalModeling/resonator.h