Class daisysp::Tone¶
#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¶
Returns:
the current value for the cutoff frequency or half-way point of the filter.
function Init¶
Initializes the Tone module. sample_rate - The sample rate of the audio engine being run.
function Process¶
Processes one sample through the filter and returns one sample. in - input signal
function SetFreq¶
Sets the cutoff frequency or half-way point of the filter.
Parameters:
freq- frequency value in Hz. Range: Any positive value.
function Tone¶
function ~Tone¶
The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Filters/tone.h