Skip to content

Class daisysp::Mode

ClassList > daisysp > Mode

More...

  • #include <mode.h>

Public Functions

Type Name
void Clear ()
void Init (float sample_rate)
Mode ()
float Process (float in)
void SetFreq (float freq)
void SetQ (float q)
~Mode ()

Detailed Description

Resonant Modal Filter

Public Functions Documentation

function Clear

void daisysp::Mode::Clear () 

Clears the filter, returning the output to 0.0


function Init

void daisysp::Mode::Init (
    float sample_rate
) 

Initializes the instance of the module. sample_rate: frequency of the audio engine in Hz


function Mode

inline daisysp::Mode::Mode () 

function Process

float daisysp::Mode::Process (
    float in
) 

Processes one input sample through the filter, and returns the output.


function SetFreq

inline void daisysp::Mode::SetFreq (
    float freq
) 

Sets the resonant frequency of the modal filter. Range: Any frequency such that sample_rate / freq < PI (about 15.2kHz at 48kHz)


function SetQ

inline void daisysp::Mode::SetQ (
    float q
) 

Sets the quality factor of the filter. Range: Positive Numbers (Good values range from 70 to 1400)


function ~Mode

inline daisysp::Mode::~Mode () 


The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Filters/mode.h