Filters
๐จ THIS DOCUMENTATION IS FOR VERSION =<2.6.1. WE RECOMMEND USING THE LATEST VERSION FOR SUPPORT REASONS. WE ALSO WARN THAT THIS OLDER DOCUMENTATION MAY NOT BE COMPLETE OR POORLY READABLE.
Constructorโ
- Filters
Table of Contentsโ
Propertiesโ
distortionโ
Get distortion settings
Returns:
DistortionOptions{}|null
equalizerโ
Get equalizer settings
Returns:
Band[]
karaokeโ
Get karaoke settings
Returns:
KaraokeOptions{}|null
playerโ
Get player
Returns:
Player
rotationโ
Get rotation settings
Returns:
RotationOptions{}|null
timescaleโ
Get timescale settings
Returns:
TimescaleOptions{}|null
vibratoโ
Get vibrato settings
Returns:
VibratoOptions{}|null
volumeโ
Get volume
Returns:
number
Methodsโ
bassBoost()โ
Applies the bass boost effect.
Returns:
this
clearFilters()โ
Removes the audio effects and resets the filters status.
Returns:
Promise<this>
distort()โ
Applies the distortion audio effect.
Returns:
this
eightD()โ
Applies the eight dimension audio effect.
Returns:
this
getFilterStatus()โ
Returns the status of the specified filter.
Returns:
this
Parameter Type Optional filterAvailableFilters
nightcore()โ
Applies the nightcore effect.
Returns:
this
setDistortion()โ
Applies the distortion options specified by the filter.
Returns:
this
Parameter Type Optional distortionDistortionOptions{}
setEqualizer()โ
Sets the equalizer bands and updates the filters.
Returns:
this
Parameter Type Optional bandsBand[]
setKaraoke()โ
Applies the karaoke options specified by the filter.
Returns:
this
Parameter Type Optional karaokeKaraokeOptions{}
setTimescale()โ
Applies the timescale options specified by the filter.
Returns:
this
Parameter Type Optional timescaleTimescaleOptions{}
setVibrato()โ
Applies the vibrato options specified by the filter.
Returns:
this
Parameter Type Optional vibratoVibratoOptions{}
slowmo()โ
Applies the slow motion audio effect.
Returns:
this
soft()โ
Applies the soft audio effect.
Returns:
this
trebleBass()โ
Applies the treble bass effect.
Returns:
this
tv()โ
Applies the television audio effect.
Returns:
this
vaporwave()โ
Applies the vaporwave effect.
Returns:
this
Filter Optionsโ
AvailableFiltersโ
bassboostdistorteightDkaraokenightcoreslowmosofttrebleBasstvvaporwave
DistortionOptionsโ
Options for applying distortion effect to audio.
Properties Type Description sinOffsetnumber The offset value for the sine wave distortion. sinScalenumber The scale factor for the sine wave distortion. cosOffsetnumber The offset value for the cosine wave distortion. cosScalenumber The scale factor for the cosine wave distortion. tanOffsetnumber The offset value for the tangent wave distortion. tanScalenumber The scale factor for the tangent wave distortion. offsetnumber The general offset applied to the distortion effect. scalenumber The general scale factor applied to the distortion effect.
KaraokeOptionsโ
Options for applying karaoke effect to audio.
Properties Type Description levelnumber The level of karaoke effect. monoLevelnumber The mono level of karaoke effect. filterBandnumber The filter band of karaoke effect. filterWidthnumber The filter width of karaoke effect.
RotationOptionsโ
Options for applying rotation effect to audio.
Properties Type Description rotationHznumber The rotation speed in Hertz (Hz).
TimescaleOptionsโ
Options for adjusting the timescale of audio.
Properties Type Description speednumber The speed factor for the timescale. pitchnumber The pitch factor for the timescale. ratenumber The rate factor for the timescale.
VibratoOptionsโ
Options for applying vibrato effect to audio.
Properties Type Description speednumber The speed factor for the timescale. pitchnumber The pitch factor for the timescale. ratenumber The rate factor for the timescale.