LuaSTG-x Core API
audio::Effect Class Reference

audio.Filter More...

Public Member Functions

static function Autowah (local id, local attack, local release, local resonance, local peakgain)
 
static function Chorus (local id, local waveform, local phase, local rate, local depth, local feedback, local delay)
 
static function Compressor (local id, local enable)
 
static function Distortion (local id, local gain, local edge, local lowcut, local center, local bandwidth)
 
static function Echo (local id, local delay, local tapdelay, local damping, local feedback, local spread)
 
static function Equalizer (local id, local lowgain, local lowcut, local lowmidgain, local lowmidfrequency, local lowmidbandwidth, local highmidgain, local highmidfrequency, local highmidbandwidth, local highgain, local highcut)
 
static function Flanger (local id, local waveform, local phase, local rate, local depth, local feedback, local delay)
 
static function FreqShifter (local id, local frequency, local left_dir, local right_dir)
 
static function Modulator (local id, local waveform, local frequency, local highcut)
 
static function Morpher (local id, local waveform, local rate, local phonem_a, local phonem_b, local tune_a, local tune_b)
 
static function PitchShifter (local id, local pitch)
 
static function Reverb (local id, local gain, local highgain, local density, local diffusion, local decaytime, local decayhighratio, local earlygain, local earlydelay, local lategain, local latedelay, local roomrolloff, local airabsorption, local highlimit)
 

Detailed Description

Member Function Documentation

◆ Autowah()

static function Autowah ( local  id,
local  attack,
local  release,
local  resonance,
local  peakgain 
)
Parameters
idstring
attacknumber
releasenumber
resonancenumber
peakgainnumber
Returns
string return id if success, nil if failed

◆ Chorus()

static function Chorus ( local  id,
local  waveform,
local  phase,
local  rate,
local  depth,
local  feedback,
local  delay 
)

chorus: Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker".

Parameters
idstring
waveformaudio.EffectWaveform
phasenumber @[-180, 180], 90
ratenumber @[0.0, 10.0], 1.1
depthnumber @[0.0, 1.0], 0.1
feedbacknumber @[-1.0, 1.0], 0.25
delaynumber @[0.0, 0.016], 0.016
Returns
string return id if success, nil if failed

◆ Compressor()

static function Compressor ( local  id,
local  enable 
)

compressor: Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time.

Parameters
idstring
enableboolean
Returns
string return id if success, nil if failed

◆ Distortion()

static function Distortion ( local  id,
local  gain,
local  edge,
local  lowcut,
local  center,
local  bandwidth 
)

distortion: Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound.

Parameters
idstring
gainnumber
edgenumber
lowcutnumber
centernumber
bandwidthnumber
Returns
string return id if success, nil if failed

◆ Echo()

static function Echo ( local  id,
local  delay,
local  tapdelay,
local  damping,
local  feedback,
local  spread 
)

echo: Decaying feedback based effect, on the order of seconds. Also known as delay causes the sound to repeat at regular intervals at a decreasing volume.

Parameters
idstring
delaynumber
tapdelaynumber
dampingnumber
feedbacknumber
spreadnumber
Returns
string return id if success, nil if failed

◆ Equalizer()

static function Equalizer ( local  id,
local  lowgain,
local  lowcut,
local  lowmidgain,
local  lowmidfrequency,
local  lowmidbandwidth,
local  highmidgain,
local  highmidfrequency,
local  highmidbandwidth,
local  highgain,
local  highcut 
)

equalizer: Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer.

Parameters
idstring
lowgainnumber
lowcutnumber
lowmidgainnumber
lowmidfrequencynumber
lowmidbandwidthnumber
highmidgainnumber
highmidfrequencynumber
highmidbandwidthnumber
highgainnumber
highcutnumber
Returns
string return id if success, nil if failed

◆ Flanger()

static function Flanger ( local  id,
local  waveform,
local  phase,
local  rate,
local  depth,
local  feedback,
local  delay 
)

flanger: Plays two copies of the sound while varying the phase, or equivalently delaying one of them, by amounts on the order of milliseconds, resulting in phasing sounds.

Parameters
idstring
waveformaudio.EffectWaveform
phasenumber
ratenumber
depthnumber
feedbacknumber
delaynumber
Returns
string return id if success, nil if failed

◆ FreqShifter()

static function FreqShifter ( local  id,
local  frequency,
local  left_dir,
local  right_dir 
)
Parameters
idstring
frequencynumber
left_diraudio.EffectDirection
right_diraudio.EffectDirection
Returns
string return id if success, nil if failed

◆ Modulator()

static function Modulator ( local  id,
local  waveform,
local  frequency,
local  highcut 
)

modulator: An implementation of amplitude modulation multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones.

Parameters
idstring
waveformaudio.EffectWaveform
frequencynumber
highcutnumber
Returns
string return id if success, nil if failed

◆ Morpher()

static function Morpher ( local  id,
local  waveform,
local  rate,
local  phonem_a,
local  phonem_b,
local  tune_a,
local  tune_b 
)
Parameters
idstring
waveformaudio.EffectWaveform
ratenumber
phonem_aaudio.EffectPhoneme
phonem_baudio.EffectPhoneme
tune_anumber
tune_bnumber
Returns
string return id if success, nil if failed

◆ PitchShifter()

static function PitchShifter ( local  id,
local  pitch 
)
Parameters
idstring
pitchnumber
Returns
string return id if success, nil if failed

◆ Reverb()

static function Reverb ( local  id,
local  gain,
local  highgain,
local  density,
local  diffusion,
local  decaytime,
local  decayhighratio,
local  earlygain,
local  earlydelay,
local  lategain,
local  latedelay,
local  roomrolloff,
local  airabsorption,
local  highlimit 
)

reverb: Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings.

Parameters
idstring
gainnumber
highgainnumber
densitynumber
diffusionnumber
decaytimenumber
decayhighrationumber
earlygainnumber
earlydelaynumber
lategainnumber
latedelaynumber
roomrolloffnumber
airabsorptionnumber
highlimitboolean
Returns
string return id if success, nil if failed

The documentation for this class was generated from the following files: