reckfellENGINE

AudioEffectChorus

Adds a chorus audio effect to an audio bus. Gives the impression of multiple audio sources.

On this page
class AudioEffectChorusReckfellSharpInherits AudioEffect

Adds a chorus audio effect to an audio bus. Gives the impression of multiple audio sources.

A "chorus" effect creates multiple copies of the original audio (called "voices") with variations in pitch, and layers on top of the original, giving the impression that the sound comes from multiple sources. This creates spectral and spatial movement. Each voice is played a short period of time after the original audio, controlled by delay. An internal low-frequency oscillator (LFO) controls their pitch, and depth controls the LFO's maximum amount. In the real world, this kind of effect is found in pianos, choirs, and instrument ensembles. This effect can also be used to widen mono audio and make digital sounds have a more natural or analog quality.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

AudioEffectChorusConstructor
# AudioEffectChorus
C#
public AudioEffectChorus();

Properties3

DryProperty
# Dry
C#
public float Dry { get; set; }

The volume ratio of the original audio. Value can range from 0 to 1.

VoiceCountProperty
# VoiceCount
C#
public int VoiceCount { get; set; }

The number of voices in the effect. Value can range from 1 to 4.

WetProperty
# Wet
C#
public float Wet { get; set; }

The volume ratio of all voices. Value can range from 0 to 1.

Methods18

GetDryfloat
# GetDry
C#
public float GetDry();
Returns float
GetVoiceCountint
# GetVoiceCount
C#
public int GetVoiceCount();
Returns int
GetVoiceCutoffHzfloat
# GetVoiceCutoffHz
C#
public float GetVoiceCutoffHz(int voiceIdx);

Returns the frequency threshold of a given voice_idx's low-pass filter in Hz. Frequencies above this value are removed from the voice.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetVoiceDelayMsfloat
# GetVoiceDelayMs
C#
public float GetVoiceDelayMs(int voiceIdx);

Returns the delay of a given voice_idx in milliseconds, compared to the original audio.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetVoiceDepthMsfloat
# GetVoiceDepthMs
C#
public float GetVoiceDepthMs(int voiceIdx);

Returns the depth of a given voice_idx's low-frequency oscillator in milliseconds.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetVoiceLevelDbfloat
# GetVoiceLevelDb
C#
public float GetVoiceLevelDb(int voiceIdx);

Returns the gain of a given voice_idx in dB.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetVoicePanfloat
# GetVoicePan
C#
public float GetVoicePan(int voiceIdx);

Returns the pan position of a given voice_idx. Negative values mean the left channel, positive mean the right.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetVoiceRateHzfloat
# GetVoiceRateHz
C#
public float GetVoiceRateHz(int voiceIdx);

Returns the rate of a given voice_idx's low-frequency oscillator in Hz.

Parameters
NameTypeDefault
voiceIdxint—
Returns float
GetWetfloat
# GetWet
C#
public float GetWet();
Returns float
SetDryvoid
# SetDry
C#
public void SetDry(float amount);
Parameters
NameTypeDefault
amountfloat—
SetVoiceCountvoid
# SetVoiceCount
C#
public void SetVoiceCount(int voices);
Parameters
NameTypeDefault
voicesint—
SetVoiceCutoffHzvoid
# SetVoiceCutoffHz
C#
public void SetVoiceCutoffHz(int voiceIdx, float cutoffHz);

Sets the frequency threshold of a given voice_idx's low-pass filter in Hz. Frequencies above cutoff_hz are removed from voice_idx. Value can range from 1 to 20500.

Parameters
NameTypeDefault
voiceIdxint—
cutoffHzfloat—
SetVoiceDelayMsvoid
# SetVoiceDelayMs
C#
public void SetVoiceDelayMs(int voiceIdx, float delayMs);

Sets the delay of a given voice_idx in milliseconds, compared to the original audio. Value can range from 0 to 50.

Parameters
NameTypeDefault
voiceIdxint—
delayMsfloat—
SetVoiceDepthMsvoid
# SetVoiceDepthMs
C#
public void SetVoiceDepthMs(int voiceIdx, float depthMs);

Sets the depth of a given voice_idx's low-frequency oscillator in milliseconds. Value can range from 0 to 20.

Parameters
NameTypeDefault
voiceIdxint—
depthMsfloat—
SetVoiceLevelDbvoid
# SetVoiceLevelDb
C#
public void SetVoiceLevelDb(int voiceIdx, float levelDb);

Sets the gain of a given voice_idx in dB. Value can range from -60 to 24.

Parameters
NameTypeDefault
voiceIdxint—
levelDbfloat—
SetVoicePanvoid
# SetVoicePan
C#
public void SetVoicePan(int voiceIdx, float pan);

Sets the pan position of a given voice_idx. Negative values pan the sound to the left, positive pan to the right. Value can range from -1 to 1.

Parameters
NameTypeDefault
voiceIdxint—
panfloat—
SetVoiceRateHzvoid
# SetVoiceRateHz
C#
public void SetVoiceRateHz(int voiceIdx, float rateHz);

Sets the rate of a given voice_idx's low-frequency oscillator in Hz. Value can range from 0.1 to 20.

Parameters
NameTypeDefault
voiceIdxint—
rateHzfloat—
SetWetvoid
# SetWet
C#
public void SetWet(float amount);
Parameters
NameTypeDefault
amountfloat—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.