Skip to content

daisysp::ATone

More...

#include <atone.h>

Public Functions

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

Detailed Description

class daisysp::ATone;

A first-order recursive high-pass filter with variable frequency response. Original Author(s): Barry Vercoe, John FFitch, Gabriel Maldonado

Year: 1991

Original Location: Csound – OOps/ugens5.c

Ported from soundpipe by Ben Sergentanis, May 2020

Public Functions Documentation

function ATone

inline ATone()

function ~ATone

inline ~ATone()

function Init

void Init(
    float sample_rate
)

Parameters:

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

Initializes the ATone module.


function Process

float Process(
    float & in
)

Parameters:

  • in - input signal

Processes one sample through the filter and returns one sample.


function SetFreq

inline void SetFreq(
    float & freq
)

Parameters:

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

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


function GetFreq

inline float GetFreq()

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

get current frequency

---

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