Class daisysp::Chorus¶
#include <chorus.h>
Public Functions¶
| Type | Name |
|---|---|
| Chorus () |
|
| float | GetLeft () |
| float | GetRight () |
| void | Init (float sample_rate) |
| float | Process (float in) |
| 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) |
| void | SetLfoDepth (float depthl, float depthr) |
| void | SetLfoDepth (float depth) |
| void | SetLfoFreq (float freql, float freqr) |
| void | SetLfoFreq (float freq) |
| void | SetPan (float panl, float panr) |
| void | SetPan (float pan) |
| ~Chorus () |
Detailed Description¶
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 GetLeft¶
Get the left channel's last sample
function GetRight¶
Get the right channel's last sample
function Init¶
Initialize the module
Parameters:
sample_rateAudio engine sample rate
function Process¶
Get the net floating point sample. Defaults to left channel.
Parameters:
inSample to process
function SetDelay [½]¶
Set both channel delay amounts individually.
Parameters:
delaylLeft channel delay amount. Works 0-1.delayrRight channel delay amount.
function SetDelay [2/2]¶
Set both channel delay amounts.
Parameters:
delayBoth channel delay amount. Works 0-1.
function SetDelayMs [½]¶
Set both channel delay individually.
Parameters:
mslLeft channel delay in ms.msrRight channel delay in ms.
function SetDelayMs [2/2]¶
Set both channel delay in ms.
Parameters:
msBoth channel delay amounts in ms.
function SetFeedback [½]¶
Set both channels feedback individually.
Parameters:
feedbacklLeft channel feedback. Works 0-1.feedbackrRight channel feedback.
function SetFeedback [2/2]¶
Set both channels feedback.
Parameters:
feedbackBoth channel feedback. Works 0-1.
function SetLfoDepth [½]¶
Set both lfo depths individually.
Parameters:
depthlLeft channel lfo depth. Works 0-1.depthrRight channel lfo depth.
function SetLfoDepth [2/2]¶
Set both lfo depths.
Parameters:
depthBoth channels lfo depth. Works 0-1.
function SetLfoFreq [½]¶
Set both lfo frequencies individually.
Parameters:
depthlLeft channel lfo freq in Hz.depthrRight channel lfo freq in Hz.
function SetLfoFreq [2/2]¶
Set both lfo frequencies.
Parameters:
depthBoth channel lfo freqs in Hz.
function SetPan [½]¶
Pan both channels individually.
Parameters:
panlPan the left channel. 0 is left, 1 is right.panrPan the right channel.
function SetPan [2/2]¶
Pan both channels.
Parameters:
panWhere to pan both channels to. 0 is left, 1 is right.
function ~Chorus¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/chorus.h