Skip to content

Instantly share code, notes, and snippets.

@technorav3nn
Created August 24, 2021 12:35
Show Gist options
  • Save technorav3nn/1f82bbb9959a9c8436280f7f92c9f217 to your computer and use it in GitHub Desktop.
Save technorav3nn/1f82bbb9959a9c8436280f7f92c9f217 to your computer and use it in GitHub Desktop.
Filters for lavalink
const reset = {
op: "filters",
};
const vaporwave = {
op: "filters",
equalizer: [
{ band: 1, gain: 0.3 },
{ band: 0, gain: 0.3 },
],
timescale: { pitch: 0.5 },
tremolo: { depth: 0.3, frequency: 14 },
};
const bassboost = {
op: "filters",
equalizer: [
{ band: 0, gain: 0.6 },
{ band: 1, gain: 0.67 },
{ band: 2, gain: 0.67 },
{ band: 3, gain: 0 },
{ band: 4, gain: -0.5 },
{ band: 5, gain: 0.15 },
{ band: 6, gain: -0.45 },
{ band: 7, gain: 0.23 },
{ band: 8, gain: 0.35 },
{ band: 9, gain: 0.45 },
{ band: 10, gain: 0.55 },
{ band: 11, gain: 0.6 },
{ band: 12, gain: 0.55 },
{ band: 13, gain: 0 },
],
};
const pop = {
op: "filters",
equalizer: [
{ band: 0, gain: 0.65 },
{ band: 1, gain: 0.45 },
{ band: 2, gain: -0.45 },
{ band: 3, gain: -0.65 },
{ band: 4, gain: -0.35 },
{ band: 5, gain: 0.45 },
{ band: 6, gain: 0.55 },
{ band: 7, gain: 0.6 },
{ band: 8, gain: 0.6 },
{ band: 9, gain: 0.6 },
{ band: 10, gain: 0 },
{ band: 11, gain: 0 },
{ band: 12, gain: 0 },
{ band: 13, gain: 0 },
],
};
const soft = {
op: "filters",
lowPass: {
smoothing: 20.0,
},
};
const trebbleBass = {
op: "filters",
equalizer: [
{ band: 0, gain: 0.6 },
{ band: 1, gain: 0.67 },
{ band: 2, gain: 0.67 },
{ band: 3, gain: 0 },
{ band: 4, gain: -0.5 },
{ band: 5, gain: 0.15 },
{ band: 6, gain: -0.45 },
{ band: 7, gain: 0.23 },
{ band: 8, gain: 0.35 },
{ band: 9, gain: 0.45 },
{ band: 10, gain: 0.55 },
{ band: 11, gain: 0.6 },
{ band: 12, gain: 0.55 },
{ band: 13, gain: 0 },
],
};
const eightd = {
op: "filters",
rotation: {
rotationHz: 0.2,
},
};
const karaoke = {
op: "filters",
karaoke: {
level: 1.0,
monoLevel: 1.0,
filterBand: 220.0,
filterWidth: 100.0,
},
};
export const filters = {
karaoke,
eightd,
trebbleBass,
soft,
pop,
bassboost,
vaporwave,
reset,
};
@mikoker
Copy link

mikoker commented Apr 21, 2024

sigma w huj dzieki bratku

@mikoker
Copy link

mikoker commented Apr 21, 2024

better bassboost:

bass_boost_bands = [
    {"band": 0, "gain": 1.0},
    {"band": 1, "gain": 0.8},
    {"band": 2, "gain": 0.6},
    {"band": 3, "gain": 0.0},
    {"band": 4, "gain": -0.3},
    {"band": 5, "gain": 0.0},
    {"band": 6, "gain": -0.5},
    {"band": 7, "gain": 0.0},
    {"band": 8, "gain": 0.0},
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment