core.audio_2d.effect

Client

Enumeration of supported audio effects


Values


core.audio_2d.effect.REVERB

Room reverb — simulates reflections within an enclosed space.

KeyTypeDescription
room_sizefloatSize of the simulated room
dampingfloatHigh-frequency damping of the reflections
spreadfloatStereo spread of the reflections
wetfloatAmount of processed signal in the output
dryfloatAmount of unprocessed signal in the output
hpffloatHigh-pass filter applied to the reflections
predelay_msecfloatDelay in milliseconds before reflections start
predelay_feedbackfloatFeedback amount applied to the pre-delay

core.audio_2d.effect.CHORUS

Chorus — layers detuned copies of the signal for a fuller sound.

KeyTypeDescription
voice_countintNumber of chorus voices
wetfloatAmount of processed signal in the output
dryfloatAmount of unprocessed signal in the output
voicestable[]Array of voice_count entries, each a table with the following fields:
delay_ms - float
rate_hz - float
depth_ms - float
level_db - float
cutoff_hz - float
pan - float

core.audio_2d.effect.DELAY

Delay — echoes the signal across one or two configurable taps.

KeyTypeDescription
dryfloatAmount of unprocessed signal in the output
tap1_activeboolEnables the first delay tap
tap1_delay_msfloatDelay time of the first tap
tap1_level_dbfloatOutput level of the first tap
tap1_panfloatStereo pan of the first tap
tap2_activeboolEnables the second delay tap
tap2_delay_msfloatDelay time of the second tap
tap2_level_dbfloatOutput level of the second tap
tap2_panfloatStereo pan of the second tap
feedback_activeboolEnables the feedback loop
feedback_delay_msfloatDelay time of the feedback loop
feedback_level_dbfloatOutput level of the feedback loop
feedback_lowpassfloatLow-pass cutoff applied to the feedback loop

core.audio_2d.effect.DISTORTION

Distortion — applies harmonic clipping and overdrive.

KeyTypeDescription
modeintDistortion mode enum
pre_gainfloatGain applied before distortion
keep_hf_hzfloatFrequency above which the signal is preserved
drivefloatAmount of distortion applied
post_gainfloatGain applied after distortion

core.audio_2d.effect.AMPLIFY

Amplify — boosts or attenuates the signal level.

KeyTypeDescription
volume_dbfloatAmplification amount in decibels
volume_linearfloatAmplification amount as a linear multiplier

core.audio_2d.effect.COMPRESSOR

Compressor — reduces dynamic range above a threshold.

KeyTypeDescription
thresholdfloatLevel above which compression is applied
ratiofloatAmount of compression applied above the threshold
gainfloatOutput gain compensation
attack_usfloatAttack time in microseconds
release_msfloatRelease time in milliseconds
mixfloatBlend between unprocessed and compressed signal

core.audio_2d.effect.LIMITER

Limiter — soft-clamps peaks to a ceiling with configurable soft-clip.

KeyTypeDescription
ceiling_dbfloatMaximum output level
threshold_dbfloatLevel above which limiting is applied
soft_clip_dbfloatRange over which soft clipping is applied
soft_clip_ratiofloatAmount of soft clipping applied

core.audio_2d.effect.HARD_LIMITER

Hard Limiter — hard-clamps peaks to a ceiling.

KeyTypeDescription
ceiling_dbfloatMaximum output level
pre_gain_dbfloatGain applied before limiting
releasefloatRelease time of the limiter

core.audio_2d.effect.PANNER

Panner — positions the signal in the stereo field.

KeyTypeDescription
panfloatStereo position, from -1.0 (left) to 1.0 (right)

core.audio_2d.effect.PHASER

Phaser — sweeps a series of notch filters across the spectrum.

KeyTypeDescription
range_min_hzfloatLower bound of the sweep range
range_max_hzfloatUpper bound of the sweep range
rate_hzfloatSpeed of the sweep
feedbackfloatAmount of feedback applied to the sweep
depthfloatIntensity of the phasing effect

core.audio_2d.effect.PITCH_SHIFT

Pitch Shift — transposes the signal without changing its tempo.

KeyTypeDescription
pitch_scalefloatPitch multiplier applied to the signal
oversamplingintOversampling factor used during processing
fft_sizeintFFT size enum used during processing

core.audio_2d.effect.STEREO_ENHANCE

Stereo Enhance — widens the stereo image via pan and time pullout.

KeyTypeDescription
pan_pulloutfloatAmount of stereo pan widening
time_pulloutfloatAmount of time-based stereo widening
surroundfloatAmount of surround signal added

core.audio_2d.effect.LOWPASS_FILTER

Low-pass filter — attenuates frequencies above the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.HIGHPASS_FILTER

High-pass filter — attenuates frequencies below the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.BANDPASS_FILTER

Band-pass filter — passes a band of frequencies around the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.NOTCH_FILTER

Notch filter — attenuates a narrow band around the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.BANDLIMIT_FILTER

Band-limit filter — combines low-pass and high-pass into a single stage.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.LOWSHELF_FILTER

Low-shelf filter — boosts or cuts all frequencies below the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.HIGHSHELF_FILTER

High-shelf filter — boosts or cuts all frequencies above the cutoff.

KeyTypeDescription
cutofffloatCutoff frequency of the filter
resonancefloatResonance applied at the cutoff frequency
gainfloatGain applied by the filter
dbintFilter roll-off enum

core.audio_2d.effect.EQ6

6-band equalizer.

KeyTypeDescription
bandsfloat[]Array of 6 entries, each the gain in decibels for that band

core.audio_2d.effect.EQ10

10-band equalizer.

KeyTypeDescription
bandsfloat[]Array of 10 entries, each the gain in decibels for that band

core.audio_2d.effect.EQ21

21-band equalizer.

KeyTypeDescription
bandsfloat[]Array of 21 entries, each the gain in decibels for that band

On this page