Filters

Constructor

new Magmastream.Filters(player: Player)

Properties

ParameterType
playerPlayer

Overview

MethodsTypeReturnsDescription
eightDthisEnable eight-dimension audio.
bassBoostthisEnable bass boost filter.
nightcorethisEnable nightcore filter.
slowmothisEnable slowmo filter.
softthisEnable soft filter.
tvthisEnable tv filter.
trebleBassthisEnable treble bass filter.
vaporwavethisEnable vaporwave filter.
distortthisEnable distortion filter.
setEqualizerBand[]thisSet custom equalizer bands.
setKaraokeKaraokeOptionsthisSet karaoke filter.
setTimescaleTimescaleOptionsthisSet the timescale.
setVibratoVibratoOptionsthisSet the vibrato effect.
setRotationRotationOptionsthisSet the rotation effect.
setDistortionDistortionOptionsthisSet the distortion effect.
clearFiltersPromise<this>Clear the filters.
Optional updateFiltersPromise<this>Update the filters.
getFilterStatusavailableFiltersbooleanThe status of the specified filter.

Band

PropertiesTypeDescription
bandnumberThe index of the equalizer band.
gainnumberThe gain value of the equalizer band.

KaraokeOptions

PropertiesTypeDescription
levelnumberThe level of karaoke effect.
monoLevelnumberThe mono level of karaoke effect.
filterBandnumberThe filter band of karaoke effect.
filterWidthnumberThe filter width of karaoke effect.

TimescaleOptions

PropertiesTypeDescription
speednumberThe speed factor for the timescale.
pitchnumberThe pitch factor for the timescale.
ratenumberThe rate factor for the timescale.

VibratoOptions

PropertiesTypeDescription
speednumberThe speed factor for the timescale.
pitchnumberThe pitch factor for the timescale.
ratenumberThe rate factor for the timescale.

RotationOptions

PropertiesTypeDescription
rotationHznumberThe rotation speed in Hertz (Hz).

DistortionOptions

PropertiesType
sinOffsetnumber
sinScalenumber
cosOffsetnumber
cosScalenumber
tanOffsetnumber
tanScalenumber
offsetnumber
scalenumber

availableFilters

Properties
bassboost
distort
eightD
karaoke
nightcore
slowmo
soft
treblebass
tv
vaporwave