Skip to content

daisysp::Tremolo

Tremolo effect. More...

#include <tremolo.h>

Public Functions

Name
Tremolo()
~Tremolo()
void Init(float sample_rate)
float Process(float in)
void SetFreq(float freq)
void SetWaveform(int waveform)
void SetDepth(float depth)

Detailed Description

class daisysp::Tremolo;

Tremolo effect.

Author: Ben Sergentanis

Date: Jan 2021 Based on https://christianfloisand.wordpress.com/2012/04/18/coding-some-tremolo/

Public Functions Documentation

function Tremolo

inline Tremolo()

function ~Tremolo

inline ~Tremolo()

function Init

void Init(
    float sample_rate
)

Parameters:

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

Initializes the module


function Process

float Process(
    float in
)

Parameters:

  • in Input sample.

Return: Next floating point sample.


function SetFreq

void SetFreq(
    float freq
)

Parameters:

Sets the tremolo rate.


function SetWaveform

void SetWaveform(
    int waveform
)

Parameters:

  • waveform Oscillator waveform. Use Oscillator::WAVE_SIN for example.

Shape of the modulating lfo


function SetDepth

void SetDepth(
    float depth
)

Parameters:

  • depth Works 0-1.

How much to modulate your volume.

---

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