Class daisysp::Tremolo¶
#include <tremolo.h>
Public Functions¶
Type | Name |
---|---|
void | Init (float sample_rate) |
float | Process (float in) |
void | SetDepth (float depth) |
void | SetFreq (float freq) |
void | SetWaveform (int waveform) |
Tremolo () |
|
~Tremolo () |
Detailed Description¶
Author:
Ben Sergentanis
Date:
Jan 2021 Based on https://christianfloisand.wordpress.com/2012/04/18/coding-some-tremolo/
Public Functions Documentation¶
function Init¶
Initializes the module
Parameters:
sample_rate
The sample rate of the audio engine being run.
function Process¶
Parameters:
in
Input sample.
Returns:
Next floating point sample.
function SetDepth¶
How much to modulate your volume.
Parameters:
depth
Works 0-1.
function SetFreq¶
Sets the tremolo rate.
Parameters:
freq
Tremolo freq in Hz.
function SetWaveform¶
Shape of the modulating lfo
Parameters:
waveform
Oscillator waveform. Use Oscillator::WAVE_SIN for example.
function Tremolo¶
function ~Tremolo¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/tremolo.h