Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

Filters

2D edited this page Oct 28, 2020 · 6 revisions

This lavalink repo implements lavadsp filters.

P.S. some of the lavadsp filter descriptions are taken from the repo itself.

This is the payload you would use.

{
  "op": "filters",
  "guildId": "...",
  ...
}

(lavadsp) Timescale

Time stretch and pitch scale filter implementation.

pitch, speed, and rate are Floats. Each property has a default of 1.0

{
  ...
  "timescale": {
    "pitch": 1.1, // The audio pitch.
    "rate": 1.2, // The playback rate.
    "speed": 1.0 // The playback speed
  }
}

Equalizer

The equalizer filter works the same as the equalizer op within lavalink.

{
  ...
  "equalizer": {
    "bands": [ 
      { 
        "band": 3, 
        "gain": .3 
      }, 
      { 
        "band": 4, 
        "gain": .3 
      } 
    ]
  }
}

(lavadsp) Volume

Updates the effect volume, with a multiplier ranging from 0 to 5.

{
  ...
  "volume": 1.5
}

(lavadsp) Tremolo

Uses amplification to create a shuddering effect, where the volume quickly oscillates.
Example: https://en.wikipedia.org/wiki/File:Fuse_Electronics_Tremolo_MK-III_Quick_Demo.ogv

{
  "tremolo": {
    "depth": .5, // The effect depth.
    "frequency": 2 // The effect frequency.
  }
}

(lavadsp) Karaoke

Uses equalization to eliminate part of a band, usually targeting vocals.

{
  "karaoke": {
    "level": 1.0,
    "monoLevel": 1.0,
    "filterBand": 220.0,
    "filterWidth": 100.0
  }
}

More Filter Documentation Coming...

Clone this wiki locally