Skip to content

Class daisysp::ATone

ClassList > daisysp > ATone

More...

  • #include <atone.h>

Public Functions

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

Detailed Description

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

Public Functions Documentation

function ATone

inline daisysp::ATone::ATone () 

function GetFreq

inline float daisysp::ATone::GetFreq () 

get current frequency

Returns:

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


function Init

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

Initializes the ATone module.

Parameters:

  • sample_rate - The sample rate of the audio engine being run.

function Process

float daisysp::ATone::Process (
    float & in
) 

Processes one sample through the filter and returns one sample.

Parameters:

  • in - input signal

function SetFreq

inline void daisysp::ATone::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 ~ATone

inline daisysp::ATone::~ATone () 


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