Skip to content

Class daisysp::ChorusEngine

ClassList > daisysp > ChorusEngine

Single Chorus engine. Used inChorus .More...

  • #include <chorus.h>

Public Functions

Type Name
ChorusEngine ()
void Init (float sample_rate)
float Process (float in)
void SetDelay (float delay)
void SetDelayMs (float ms)
void SetFeedback (float feedback)
void SetLfoDepth (float depth)
void SetLfoFreq (float freq)
~ChorusEngine ()

Detailed Description

Author:

Ben Sergentanis

Public Functions Documentation

function ChorusEngine

inline daisysp::ChorusEngine::ChorusEngine () 

function Init

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

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate.

function Process

float daisysp::ChorusEngine::Process (
    float in
) 

Get the next sample

Parameters:

  • in Sample to process

function SetDelay

void daisysp::ChorusEngine::SetDelay (
    float delay
) 

Set the internal delay rate.

Parameters:

  • delay Tuned for 0-1. Maps to .1 to 50 ms.

function SetDelayMs

void daisysp::ChorusEngine::SetDelayMs (
    float ms
) 

Set the delay time in ms.

Parameters:

  • ms Delay time in ms, 0 to 50 ms.

function SetFeedback

void daisysp::ChorusEngine::SetFeedback (
    float feedback
) 

Set the feedback amount.

Parameters:

  • feedback Amount from 0-1.

function SetLfoDepth

void daisysp::ChorusEngine::SetLfoDepth (
    float depth
) 

How much to modulate the delay by.

Parameters:

  • depth Works 0-1.

function SetLfoFreq

void daisysp::ChorusEngine::SetLfoFreq (
    float freq
) 

Set lfo frequency.

Parameters:

  • freq Frequency in Hz

function ~ChorusEngine

inline daisysp::ChorusEngine::~ChorusEngine () 


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