Skip to content

Class daisysp::Tone

ClassList > daisysp > Tone

More...

  • #include <tone.h>

Public Functions

Type Name
float GetFreq ()
void Init (float sample_rate)
float Process (float in)
void SetFreq (float freq)
Tone ()
~Tone ()

Detailed Description

A first-order recursive low-pass filter with variable frequency response.

Public Functions Documentation

function GetFreq

inline float daisysp::Tone::GetFreq () 

Returns:

the current value for the cutoff frequency or half-way point of the filter.


function Init

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

Initializes the Tone module. sample_rate - The sample rate of the audio engine being run.


function Process

float daisysp::Tone::Process (
    float in
) 

Processes one sample through the filter and returns one sample. in - input signal


function SetFreq

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

Sets the cutoff frequency or half-way point of the filter.

Parameters:

  • freq - frequency value in Hz. Range: Any positive value.

function Tone

inline daisysp::Tone::Tone () 

function ~Tone

inline daisysp::Tone::~Tone () 


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