Skip to content

daisysp::Mode

More...

#include <mode.h>

Public Functions

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

Detailed Description

class daisysp::Mode;

Resonant Modal Filter

Extracted from soundpipe to work as a Daisy Module,

originally extracted from csound by Paul Batchelor.

Original Author(s): Francois Blanc, Steven Yi

Year: 2001

Location: Opcodes/biquad.c (csound)

Public Functions Documentation

function Mode

inline Mode()

function ~Mode

inline ~Mode()

function Init

void Init(
    float sample_rate
)

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


function Process

float Process(
    float in
)

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


function Clear

void Clear()

Clears the filter, returning the output to 0.0


function SetFreq

inline void 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 SetQ(
    float q
)

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

---

Updated on 2024-01-03 at 19:38:46 +0000