Filters
The Filters class represents a collection of audio filters that can be applied to audio playback.
Constructor
ts
new Filters(player: Player)Properties
| Parameter | Type |
|---|---|
player | Player |
Overview
| Methods | Type | Returns | Description |
|---|---|---|---|
eightD | this | Enable eight-dimension audio. | |
bassBoost | this | Enable bass boost filter. | |
nightcore | this | Enable nightcore filter. | |
slowmo | this | Enable slowmo filter. | |
soft | this | Enable soft filter. | |
tv | this | Enable tv filter. | |
trebleBass | this | Enable treble bass filter. | |
vaporwave | this | Enable vaporwave filter. | |
distort | this | Enable distortion filter. | |
setEqualizer | Band[] | this | Set custom equalizer bands. |
setKaraoke | KaraokeOptions | this | Set karaoke filter. |
setTimescale | TimescaleOptions | this | Set the timescale. |
setVibrato | VibratoOptions | this | Set the vibrato effect. |
setRotation | RotationOptions | this | Set the rotation effect. |
setDistortion | DistortionOptions | this | Set the distortion effect. |
clearFilters | Promise<this> | Clear the filters. | |
updateFilters | Promise<this> | Update the filters. | |
getFilterStatus | availableFilters | boolean | The status of the specified filter. |
Band
Properties Type Description band numberThe index of the equalizer band. gain numberThe gain value of the equalizer band.
KaraokeOptions
Properties Type Description level numberThe level of karaoke effect. monoLevel numberThe mono level of karaoke effect. filterBand numberThe filter band of karaoke effect. filterWidth numberThe filter width of karaoke effect.
TimescaleOptions
Properties Type Description speed numberThe speed factor for the timescale. pitch numberThe pitch factor for the timescale. rate numberThe rate factor for the timescale.
VibratoOptions
Properties Type Description speed numberThe speed factor for the timescale. pitch numberThe pitch factor for the timescale. rate numberThe rate factor for the timescale.
RotationOptions
Properties Type Description rotationHz numberThe rotation speed in Hertz (Hz).
DistortionOptions
Properties Type sinOffset numbersinScale numbercosOffset numbercosScale numbertanOffset numbertanScale numberoffset numberscale number
availableFilters
Properties bassboostdistorteightDkaraokenightcoreslowmosofttreblebasstvvaporwave