Skip to content

Commit

Permalink
removed searchType/audioFilters.
Browse files Browse the repository at this point in the history
This isn't needed in base core of package.
  • Loading branch information
Leref committed Nov 3, 2024
1 parent def4ed4 commit a6d29d1
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions src/classes/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,52 +227,4 @@ class Util {
}
}

Util.searchType = ["soundcloud", "localfile", "url", "youtube", "spotify"];
Util.audioFilters = {
nightcore: (value) => {
return {
asetrate: 48000 * value,
aresample: 48000
};
},
bassboost: (value) => {
return {
bass: `g=${value}`
};
},
"8d": () => {
return {
extrastereo: "",
aecho: "1:1:40:0.5",
apulsator: "hz=0.125",
stereowiden: ""
};
},
pitch: (value) => {
return {
asetrate: 48000 * value,
atempo: 1 - Number(`${value}`.split(".")[1]),
aresample: 48000
};
},
karaoke: (value) => {
return {
stereotools: `mlev=${0.015625 * value}`
};
},
slowed: (value) => {
return {
asetrate: 48000 * Math.abs(Math.ceil(value) - value),
aresample: 48000
};
},
deep: (value) => {
return {
asetrate: 48000 * Math.abs(Math.ceil(value) - value),
atempo: 2 - Math.abs(Math.ceil(value) - value),
aresample: 48000
};
}
};

module.exports = Util;

0 comments on commit a6d29d1

Please sign in to comment.