Skip to content

Class daisysp::Tremolo

ClassList > daisysp > Tremolo

Tremolo effect.More...

  • #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

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

Initializes the module

Parameters:

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

function Process

float daisysp::Tremolo::Process (
    float in
) 

Parameters:

  • in Input sample.

Returns:

Next floating point sample.


function SetDepth

void daisysp::Tremolo::SetDepth (
    float depth
) 

How much to modulate your volume.

Parameters:

  • depth Works 0-1.

function SetFreq

void daisysp::Tremolo::SetFreq (
    float freq
) 

Sets the tremolo rate.

Parameters:


function SetWaveform

void daisysp::Tremolo::SetWaveform (
    int waveform
) 

Shape of the modulating lfo

Parameters:

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

function Tremolo

inline daisysp::Tremolo::Tremolo () 

function ~Tremolo

inline daisysp::Tremolo::~Tremolo () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/tremolo.h