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.