Advertisement
Kubaturi

DBD.JS Docs, Lavalink Filters

Apr 6th, 2021
1,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.08 KB | None | 0 0
  1. {
  2.     "op": "filters",
  3.     "guildId": "...",
  4.    
  5.     // Float value where 1.0 is 100%. Values >1.0 may cause clipping
  6.     "volume": 1.0,
  7.    
  8.     // There are 15 bands (0-14) that can be changed.
  9.     // "gain" is the multiplier for the given band. The default value is 0. Valid values range from -0.25 to 1.0,
  10.     // where -0.25 means the given band is completely muted, and 0.25 means it is doubled. Modifying the gain could
  11.     // also change the volume of the output.
  12.     "equalizer": [
  13.         {
  14.             "band": 0,
  15.             "gain": 0.2
  16.         }
  17.     ],
  18.    
  19.     // Uses equalization to eliminate part of a band, usually targeting vocals.
  20.     "karaoke": {
  21.         "level": 1.0,
  22.         "monoLevel": 1.0,
  23.         "filterBand": 220.0,
  24.         "filterWidth": 100.0
  25.     },
  26.    
  27.     // Changes the speed, pitch, and rate. All default to 1.
  28.     "timescale": {
  29.         "speed": 1.0,
  30.         "pitch": 1.0,
  31.         "rate": 1.0
  32.     },
  33.    
  34.     // Uses amplification to create a shuddering effect, where the volume quickly oscillates.
  35.     // Example: https://en.wikipedia.org/wiki/File:Fuse_Electronics_Tremolo_MK-III_Quick_Demo.ogv
  36.     "tremolo": {
  37.         "frequency": 2.0, // 0 < x
  38.         "depth": 0.5      // 0 < x ≤ 1
  39.     },
  40.    
  41.     // Similar to tremolo. While tremolo oscillates the volume, vibrato oscillates the pitch.
  42.     "vibrato": {
  43.         "frequency": 2.0, // 0 < x ≤ 14
  44.         "depth": 0.5      // 0 < x ≤ 1
  45.     },
  46.     // Rotates the sound around the stereo channels/user headphones aka Audio Panning. It can produce an effect similar to: https://youtu.be/QB9EB8mTKcc (without the reverb)
  47.     "rotation": {
  48.         "rotationHz": 0 // The frequency of the audio rotating around the listener in Hz. 0.2 is similar to the example video above.
  49.     },
  50.     //Distortion effect. It can generate some pretty unique audio effects.
  51.     "distortion": {
  52.         "sinOffset": 0,
  53.         "sinScale": 1,
  54.         "cosOffset": 0,
  55.         "cosScale": 1,
  56.         "tanOffset": 0,
  57.         "tanScale": 1,
  58.         "offset": 0,
  59.         "scale": 1
  60.     }
  61.     }
  62.    
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement