Skip to main content
Version: v2.10.1 (current)

Filters

Table of Contentsโ€‹

Class Definitionโ€‹

export class Filters {}

Propertiesโ€‹

Property Type Description
bassBoostlevelnumberThe bass boost level.
distortionDistortionOptions | nullThe distortion options or null.
equalizerBand[]The equalizer.
filtersStatusRecord<AvailableFilters, boolean>The filters status.
karaokeKaraokeOptions | nullThe karaoke options or null.
playerPlayerThe player.
reverbReverbOptions | nullThe reverb options or null.
rotationRotationOptions | nullThe rotation options or null.
timescaleTimescaleOptions | nullThe timescale options or null.
vibratoVibratoOptions | nullThe vibrato options or null.
volumenumberThe volume.

Constructorโ€‹

new Filters(player: Player, manager: Manager)
Parameter Type Description Optional
playerPlayerThe player.
managerManagerThe manager.

Methodsโ€‹

bassBoost()โ€‹

async bassBoost(stage: number): Promise<this>

Sets the bass boost level on the audio.

Parametersโ€‹

Parameter Type Description Optional
stagenumberThe stage.

Returnsโ€‹

Type Description
Promise<this>The filters.

china()โ€‹

async china(status: boolean): Promise<this>

Toggles the "China" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

chipmunk()โ€‹

async chipmunk(status: boolean): Promise<this>

Toggles the "Chipmunk" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

clearFilters()โ€‹

async clearFilters(): Promise<this>

Clears all filters on the audio.

Returnsโ€‹

Type Description
Promise<this>The filters.

darthvader()โ€‹

async darthvader(status: boolean): Promise<this>

Toggles the "Darth Vader" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

daycore()โ€‹

async daycore(status: boolean): Promise<this>

Toggles the "Daycore" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

demon()โ€‹

async demon(status: boolean): Promise<this>

Toggles the "Demon" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

distort()โ€‹

async distort(status: boolean): Promise<this>

Toggles the "Distort" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

doubletime()โ€‹

async doubletime(status: boolean): Promise<this>

Toggles the "Doubletime" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

earrape()โ€‹

async earrape(status: boolean): Promise<this>

Toggles the "Earrape" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

eightD()โ€‹

async eightD(status: boolean): Promise<this>

Toggles the "EightD" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

electronic()โ€‹

async electronic(status: boolean): Promise<this>

Toggles the "Electronic" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

getFilterStatus()โ€‹

getFilterStatus(filter: AvailableFilters): boolean

Gets the filter status.

Parametersโ€‹

Parameter Type Description Optional
filterAvailableFiltersThe filter.

Returnsโ€‹

Type Description
booleanThe filter status.

nightcore()โ€‹

async nightcore(status: boolean): Promise<this>

Toggles the "Nightcore" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

party()โ€‹

async party(status: boolean): Promise<this>

Toggles the "Party" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

pop()โ€‹

async pop(status: boolean): Promise<this>

Toggles the "Pop" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

radio()โ€‹

async radio(status: boolean): Promise<this>

Toggles the "Radio" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

setDistortion()โ€‹

async setDistortion(distortion?: DistortionOptions): Promise<this>

Sets the distortion effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
distortionDistortionOptionsThe distortion options.

Returnsโ€‹

Type Description
Promise<this>The filters.

setEqualizer()โ€‹

async setEqualizer(bands?: Band[]): Promise<this>

Sets the equalizer on the audio.

Parametersโ€‹

Parameter Type Description Optional
bandsEqualizerBand[]The equalizer bands.

Returnsโ€‹

Type Description
Promise<this>The filters.

setFilterStatus()โ€‹

async setFilterStatus(filter: AvailableFilters, status: boolean): Promise<this>

Sets the filter status on the audio.

Parametersโ€‹

Parameter Type Description Optional
filterAvailableFiltersThe filter.
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

setKaraoke()โ€‹

async setKaraoke(karaoke?: KaraokeOptions): Promise<this>

Sets the karaoke effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
karaokeKaraokeOptionsThe karaoke options.

Returnsโ€‹

Type Description
Promise<this>The filters.

setRotation()โ€‹

async setRotation(rotation?: RotationOptions): Promise<this>

Sets the rotation effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
rotationRotationOptionsThe rotation options.

Returnsโ€‹

Type Description
Promise<this>The filters.

setTimescale()โ€‹

async setTimescale(timescale?: TimescaleOptions): Promise<this>

Sets the timescale effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
timescaleTimescaleOptionsThe timescale options.

Returnsโ€‹

Type Description
Promise<this>The filters.

setVibrato()โ€‹

async setVibrato(vibrato?: VibratoOptions): Promise<this>

Sets the vibrato effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
vibratoVibratoOptionsThe vibrato options.

Returnsโ€‹

Type Description
Promise<this>The filters.

slowmo()โ€‹

async slowmo(status: boolean): Promise<this>

Toggles the "Slowmo" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

soft()โ€‹

async soft(status: boolean): Promise<this>

Toggles the "Soft" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

trebleBass()โ€‹

async trebleBass(status: boolean): Promise<this>

Toggles the "Treble Bass" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

tremolo()โ€‹

async tremolo(status: boolean): Promise<this>

Toggles the "Tremolo" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

tv()โ€‹

async tv(status: boolean): Promise<this>

Toggles the "TV" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.

updateFilters()โ€‹

async updateFilters(): Promise<this>

Updates the filters.

Returnsโ€‹

Type Description
Promise<this>The filters.

vaporwave()โ€‹

async vaporwave(status: boolean): Promise<this>

Toggles the "Vaporwave" effect on the audio.

Parametersโ€‹

Parameter Type Description Optional
statusbooleanThe status.

Returnsโ€‹

Type Description
Promise<this>The filters.