Skip to content

daisysp::Chorus

Chorus Effect. More...

#include <chorus.h>

Public Functions

Name
Chorus()
~Chorus()
void Init(float sample_rate)
float Process(float in)
float GetLeft()
float GetRight()
void SetPan(float panl, float panr)
void SetPan(float pan)
void SetLfoDepth(float depthl, float depthr)
void SetLfoDepth(float depth)
void SetLfoFreq(float freql, float freqr)
void SetLfoFreq(float freq)
void SetDelay(float delayl, float delayr)
void SetDelay(float delay)
void SetDelayMs(float msl, float msr)
void SetDelayMs(float ms)
void SetFeedback(float feedbackl, float feedbackr)
void SetFeedback(float feedback)

Detailed Description

class daisysp::Chorus;

Chorus Effect.

Author: Ben Sergentanis

Date: Jan 2021 Based on https://www.izotope.com/en/learn/understanding-chorus-flangers-and-phasers-in-audio-production.html

and https://www.researchgate.net/publication/236629475_Implementing_Professional_Audio_Effects_with_DSPs

Public Functions Documentation

function Chorus

inline Chorus()

function ~Chorus

inline ~Chorus()

function Init

void Init(
    float sample_rate
)

Parameters:

  • sample_rate Audio engine sample rate

Initialize the module


function Process

float Process(
    float in
)

Parameters:

  • in Sample to process

Get the net floating point sample. Defaults to left channel.


function GetLeft

float GetLeft()

Get the left channel's last sample


function GetRight

float GetRight()

Get the right channel's last sample


function SetPan

void SetPan(
    float panl,
    float panr
)

Parameters:

  • panl Pan the left channel. 0 is left, 1 is right.
  • panr Pan the right channel.

Pan both channels individually.


function SetPan

void SetPan(
    float pan
)

Parameters:

  • pan Where to pan both channels to. 0 is left, 1 is right.

Pan both channels.


function SetLfoDepth

void SetLfoDepth(
    float depthl,
    float depthr
)

Parameters:

  • depthl Left channel lfo depth. Works 0-1.
  • depthr Right channel lfo depth.

Set both lfo depths individually.


function SetLfoDepth

void SetLfoDepth(
    float depth
)

Parameters:

  • depth Both channels lfo depth. Works 0-1.

Set both lfo depths.


function SetLfoFreq

void SetLfoFreq(
    float freql,
    float freqr
)

Parameters:

  • depthl Left channel lfo freq in Hz.
  • depthr Right channel lfo freq in Hz.

Set both lfo frequencies individually.


function SetLfoFreq

void SetLfoFreq(
    float freq
)

Parameters:

  • depth Both channel lfo freqs in Hz.

Set both lfo frequencies.


function SetDelay

void SetDelay(
    float delayl,
    float delayr
)

Parameters:

  • delayl Left channel delay amount. Works 0-1.
  • delayr Right channel delay amount.

Set both channel delay amounts individually.


function SetDelay

void SetDelay(
    float delay
)

Parameters:

  • delay Both channel delay amount. Works 0-1.

Set both channel delay amounts.


function SetDelayMs

void SetDelayMs(
    float msl,
    float msr
)

Parameters:

  • msl Left channel delay in ms.
  • msr Right channel delay in ms.

Set both channel delay individually.


function SetDelayMs

void SetDelayMs(
    float ms
)

Parameters:

  • ms Both channel delay amounts in ms.

Set both channel delay in ms.


function SetFeedback

void SetFeedback(
    float feedbackl,
    float feedbackr
)

Parameters:

  • feedbackl Left channel feedback. Works 0-1.
  • feedbackr Right channel feedback.

Set both channels feedback individually.


function SetFeedback

void SetFeedback(
    float feedback
)

Parameters:

  • feedback Both channel feedback. Works 0-1.

Set both channels feedback.

---

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