daisysp::Chorus¶
#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¶
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¶
function ~Chorus¶
function Init¶
Parameters:
- sample_rate Audio engine sample rate
Initialize the module
function Process¶
Parameters:
- in Sample to process
Get the net floating point sample. Defaults to left channel.
function GetLeft¶
Get the left channel's last sample
function GetRight¶
Get the right channel's last sample
function SetPan¶
Parameters:
- panl Pan the left channel. 0 is left, 1 is right.
- panr Pan the right channel.
Pan both channels individually.
function SetPan¶
Parameters:
- pan Where to pan both channels to. 0 is left, 1 is right.
Pan both channels.
function SetLfoDepth¶
Parameters:
- depthl Left channel lfo depth. Works 0-1.
- depthr Right channel lfo depth.
Set both lfo depths individually.
function SetLfoDepth¶
Parameters:
- depth Both channels lfo depth. Works 0-1.
Set both lfo depths.
function SetLfoFreq¶
Parameters:
- depthl Left channel lfo freq in Hz.
- depthr Right channel lfo freq in Hz.
Set both lfo frequencies individually.
function SetLfoFreq¶
Parameters:
- depth Both channel lfo freqs in Hz.
Set both lfo frequencies.
function SetDelay¶
Parameters:
- delayl Left channel delay amount. Works 0-1.
- delayr Right channel delay amount.
Set both channel delay amounts individually.
function SetDelay¶
Parameters:
- delay Both channel delay amount. Works 0-1.
Set both channel delay amounts.
function SetDelayMs¶
Parameters:
- msl Left channel delay in ms.
- msr Right channel delay in ms.
Set both channel delay individually.
function SetDelayMs¶
Parameters:
- ms Both channel delay amounts in ms.
Set both channel delay in ms.
function SetFeedback¶
Parameters:
- feedbackl Left channel feedback. Works 0-1.
- feedbackr Right channel feedback.
Set both channels feedback individually.
function SetFeedback¶
Parameters:
- feedback Both channel feedback. Works 0-1.
Set both channels feedback.
---¶
Updated on 2024-01-03 at 19:38:46 +0000