DaisySP
Loading...
Searching...
No Matches
daisysp::Tremolo Class Reference

Tremolo effect. More...

#include <tremolo.h>

Public Member Functions

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

Detailed Description

Tremolo effect.

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

Member Function Documentation

◆ Init()

void Tremolo::Init ( float sample_rate)

Initializes the module

Parameters
sample_rateThe sample rate of the audio engine being run.

◆ Process()

float Tremolo::Process ( float in)
Parameters
inInput sample.
Returns
Next floating point sample.

◆ SetDepth()

void Tremolo::SetDepth ( float depth)

How much to modulate your volume.

Parameters
depthWorks 0-1.

◆ SetFreq()

void Tremolo::SetFreq ( float freq)

Sets the tremolo rate.

Parameters
freqTremolo freq in Hz.

◆ SetWaveform()

void Tremolo::SetWaveform ( int waveform)

Shape of the modulating lfo

Parameters
waveformOscillator waveform. Use Oscillator::WAVE_SIN for example.

The documentation for this class was generated from the following files: