Skip to main content
Version: v2.6.1

Filters




danger

๐Ÿšจ 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โ€‹

new Magmastream.Filters(player: Player)

Propertiesโ€‹

Parameter Type Description
playerPlayerThe guild player

Table of Contentsโ€‹

Properties Methods
distortionbassBoost()
equalizerclearFilters()
karaokedistort()
playereightD()
rotationgetFilterStatus()
timescalesetDistortion()
vibratosetEqualizer()
volumesetKaraoke()
setRotation()
setTimescale()
setVibrato()
slowmo()
soft()
trebleBass()
tv()
vaporwave()

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โ€‹

bassboost distort eightD karaoke nightcore slowmo soft trebleBass tv vaporwave

DistortionOptionsโ€‹

Options for applying distortion effect to audio.

Properties Type Description
sinOffsetnumberThe offset value for the sine wave distortion.
sinScalenumberThe scale factor for the sine wave distortion.
cosOffsetnumberThe offset value for the cosine wave distortion.
cosScalenumberThe scale factor for the cosine wave distortion.
tanOffsetnumberThe offset value for the tangent wave distortion.
tanScalenumberThe scale factor for the tangent wave distortion.
offsetnumberThe general offset applied to the distortion effect.
scalenumberThe general scale factor applied to the distortion effect.

KaraokeOptionsโ€‹

Options for applying karaoke effect to audio.

Properties Type Description
levelnumberThe level of karaoke effect.
monoLevelnumberThe mono level of karaoke effect.
filterBandnumberThe filter band of karaoke effect.
filterWidthnumberThe filter width of karaoke effect.

RotationOptionsโ€‹

Options for applying rotation effect to audio.

Properties Type Description
rotationHznumberThe rotation speed in Hertz (Hz).

TimescaleOptionsโ€‹

Options for adjusting the timescale of audio.

Properties Type Description
speednumberThe speed factor for the timescale.
pitchnumberThe pitch factor for the timescale.
ratenumberThe rate factor for the timescale.

VibratoOptionsโ€‹

Options for applying vibrato effect to audio.

Properties Type Description
speednumberThe speed factor for the timescale.
pitchnumberThe pitch factor for the timescale.
ratenumberThe rate factor for the timescale.