lavalink-client 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -20
- package/dist/cjs/index.d.ts +7 -1
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/structures/Constants.d.ts +40 -0
- package/dist/cjs/structures/Constants.js +244 -0
- package/dist/cjs/structures/CustomSearches/BandCampSearch.d.ts +2 -2
- package/dist/cjs/structures/Filters.d.ts +2 -217
- package/dist/cjs/structures/Filters.js +12 -236
- package/dist/cjs/structures/LavalinkManager.d.ts +31 -166
- package/dist/cjs/structures/LavalinkManager.js +60 -8
- package/dist/cjs/structures/LavalinkManagerStatics.d.ts +1 -1
- package/dist/cjs/structures/LavalinkManagerStatics.js +1 -1
- package/dist/cjs/structures/Node.d.ts +15 -156
- package/dist/cjs/structures/Node.js +140 -51
- package/dist/cjs/structures/NodeManager.d.ts +54 -52
- package/dist/cjs/structures/NodeManager.js +77 -5
- package/dist/cjs/structures/Player.d.ts +31 -124
- package/dist/cjs/structures/Player.js +78 -43
- package/dist/cjs/structures/Queue.d.ts +113 -42
- package/dist/cjs/structures/Queue.js +169 -8
- package/dist/cjs/structures/Types/Filters.d.ts +190 -0
- package/dist/cjs/structures/Types/Manager.d.ts +184 -0
- package/dist/cjs/structures/Types/Manager.js +2 -0
- package/dist/cjs/structures/Types/Node.d.ts +216 -0
- package/dist/cjs/structures/Types/Node.js +2 -0
- package/dist/cjs/structures/Types/Player.d.ts +108 -0
- package/dist/cjs/structures/Types/Player.js +2 -0
- package/dist/cjs/structures/Types/Queue.d.ts +34 -0
- package/dist/cjs/structures/Types/Queue.js +2 -0
- package/dist/cjs/structures/{Track.d.ts → Types/Track.d.ts} +4 -2
- package/dist/cjs/structures/Types/Track.js +2 -0
- package/dist/cjs/structures/Types/Utils.d.ts +367 -0
- package/dist/cjs/structures/Types/Utils.js +2 -0
- package/dist/cjs/structures/Utils.d.ts +13 -369
- package/dist/cjs/structures/Utils.js +40 -18
- package/dist/esm/index.d.ts +7 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/structures/Constants.d.ts +40 -0
- package/dist/esm/structures/Constants.js +241 -0
- package/dist/esm/structures/CustomSearches/BandCampSearch.d.ts +2 -2
- package/dist/esm/structures/Filters.d.ts +2 -217
- package/dist/esm/structures/Filters.js +7 -231
- package/dist/esm/structures/LavalinkManager.d.ts +31 -166
- package/dist/esm/structures/LavalinkManager.js +58 -6
- package/dist/esm/structures/LavalinkManagerStatics.d.ts +1 -1
- package/dist/esm/structures/LavalinkManagerStatics.js +1 -1
- package/dist/esm/structures/Node.d.ts +15 -156
- package/dist/esm/structures/Node.js +132 -43
- package/dist/esm/structures/NodeManager.d.ts +54 -52
- package/dist/esm/structures/NodeManager.js +74 -2
- package/dist/esm/structures/Player.d.ts +31 -124
- package/dist/esm/structures/Player.js +77 -42
- package/dist/esm/structures/Queue.d.ts +113 -42
- package/dist/esm/structures/Queue.js +169 -8
- package/dist/esm/structures/Types/Filters.d.ts +190 -0
- package/dist/esm/structures/Types/Manager.d.ts +184 -0
- package/dist/esm/structures/Types/Manager.js +1 -0
- package/dist/esm/structures/Types/Node.d.ts +216 -0
- package/dist/esm/structures/Types/Node.js +1 -0
- package/dist/esm/structures/Types/Player.d.ts +108 -0
- package/dist/esm/structures/Types/Player.js +1 -0
- package/dist/esm/structures/Types/Queue.d.ts +34 -0
- package/dist/esm/structures/Types/Queue.js +1 -0
- package/dist/{types/structures → esm/structures/Types}/Track.d.ts +4 -2
- package/dist/esm/structures/Types/Track.js +1 -0
- package/dist/esm/structures/Types/Utils.d.ts +367 -0
- package/dist/esm/structures/Types/Utils.js +1 -0
- package/dist/esm/structures/Utils.d.ts +13 -369
- package/dist/esm/structures/Utils.js +40 -18
- package/dist/types/index.d.ts +7 -1
- package/dist/types/structures/Constants.d.ts +40 -0
- package/dist/types/structures/CustomSearches/BandCampSearch.d.ts +2 -2
- package/dist/types/structures/Filters.d.ts +2 -217
- package/dist/types/structures/LavalinkManager.d.ts +31 -166
- package/dist/types/structures/LavalinkManagerStatics.d.ts +1 -1
- package/dist/types/structures/Node.d.ts +15 -156
- package/dist/types/structures/NodeManager.d.ts +54 -52
- package/dist/types/structures/Player.d.ts +31 -124
- package/dist/types/structures/Queue.d.ts +113 -42
- package/dist/types/structures/Types/Filters.d.ts +190 -0
- package/dist/types/structures/Types/Manager.d.ts +184 -0
- package/dist/types/structures/Types/Node.d.ts +216 -0
- package/dist/types/structures/Types/Player.d.ts +108 -0
- package/dist/types/structures/Types/Queue.d.ts +34 -0
- package/dist/{esm/structures → types/structures/Types}/Track.d.ts +4 -2
- package/dist/types/structures/Types/Utils.d.ts +367 -0
- package/dist/types/structures/Utils.d.ts +13 -369
- package/package.json +1 -1
- /package/dist/cjs/structures/{Track.js → Types/Filters.js} +0 -0
- /package/dist/esm/structures/{Track.js → Types/Filters.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Player } from "./Player";
|
|
2
|
-
import {
|
|
1
|
+
import type { Player } from "./Player";
|
|
2
|
+
import type { AudioOutputs, EQBand, FilterData, PlayerFilters, TimescaleFilter } from "./Types/Filters";
|
|
3
3
|
/**
|
|
4
4
|
* The FilterManager for each player
|
|
5
5
|
*/
|
|
@@ -143,218 +143,3 @@ export declare class FilterManager {
|
|
|
143
143
|
/** Clears the equalizer bands. */
|
|
144
144
|
clearEQ(): Promise<this>;
|
|
145
145
|
}
|
|
146
|
-
/** The Audio Outputs type */
|
|
147
|
-
export type AudioOutputs = "mono" | "stereo" | "left" | "right";
|
|
148
|
-
/** The audio Outputs Data map declaration */
|
|
149
|
-
export declare const audioOutputsData: Record<AudioOutputs, ChannelMixFilter>;
|
|
150
|
-
/** The "active" / "disabled" Player Filters */
|
|
151
|
-
export interface PlayerFilters {
|
|
152
|
-
/** Sets nightcore to false, and vaporwave to false */
|
|
153
|
-
custom: boolean;
|
|
154
|
-
/** Sets custom to false, and vaporwave to false */
|
|
155
|
-
nightcore: boolean;
|
|
156
|
-
/** Sets custom to false, and nightcore to false */
|
|
157
|
-
vaporwave: boolean;
|
|
158
|
-
/** If rotation filter is enabled / not */
|
|
159
|
-
rotation: boolean;
|
|
160
|
-
/** if karaoke filter is enabled / not */
|
|
161
|
-
karaoke: boolean;
|
|
162
|
-
/** if tremolo filter is enabled / not */
|
|
163
|
-
tremolo: boolean;
|
|
164
|
-
/** if vibrato filter is enabled / not */
|
|
165
|
-
vibrato: boolean;
|
|
166
|
-
lowPass: boolean;
|
|
167
|
-
/** audio Output (default stereo, mono sounds the fullest and best for not-stereo tracks) */
|
|
168
|
-
audioOutput: AudioOutputs;
|
|
169
|
-
/** Lavalink Volume FILTER (not player Volume, think of it as a gain booster) */
|
|
170
|
-
volume: boolean;
|
|
171
|
-
/** Filters for the Lavalink Filter Plugin */
|
|
172
|
-
lavalinkFilterPlugin: {
|
|
173
|
-
/** if echo filter is enabled / not */
|
|
174
|
-
echo: boolean;
|
|
175
|
-
/** if reverb filter is enabled / not */
|
|
176
|
-
reverb: boolean;
|
|
177
|
-
};
|
|
178
|
-
lavalinkLavaDspxPlugin: {
|
|
179
|
-
/** if lowPass filter is enabled / not */
|
|
180
|
-
lowPass: boolean;
|
|
181
|
-
/** if highPass filter is enabled / not */
|
|
182
|
-
highPass: boolean;
|
|
183
|
-
/** if normalization filter is enabled / not */
|
|
184
|
-
normalization: boolean;
|
|
185
|
-
/** if echo filter is enabled / not */
|
|
186
|
-
echo: boolean;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* There are 15 bands (0-14) that can be changed.
|
|
191
|
-
* "gain" is the multiplier for the given band.
|
|
192
|
-
* The default value is 0.
|
|
193
|
-
* Valid values range from -0.25 to 1.0, where -0.25 means the given band is completely muted, and 0.25 means it is doubled.
|
|
194
|
-
* Modifying the gain could also change the volume of the output.
|
|
195
|
-
*/
|
|
196
|
-
export interface EQBand {
|
|
197
|
-
/** On what band position (0-14) it should work */
|
|
198
|
-
band: IntegerNumber | number;
|
|
199
|
-
/** The gain (-0.25 to 1.0) */
|
|
200
|
-
gain: FloatNumber | number;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Uses equalization to eliminate part of a band, usually targeting vocals.
|
|
204
|
-
*/
|
|
205
|
-
export interface KaraokeFilter {
|
|
206
|
-
/** The level (0 to 1.0 where 0.0 is no effect and 1.0 is full effect) */
|
|
207
|
-
level?: number;
|
|
208
|
-
/** The mono level (0 to 1.0 where 0.0 is no effect and 1.0 is full effect) */
|
|
209
|
-
monoLevel?: number;
|
|
210
|
-
/** The filter band (in Hz) */
|
|
211
|
-
filterBand?: number;
|
|
212
|
-
/** The filter width */
|
|
213
|
-
filterWidth?: number;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Changes the speed, pitch, and rate
|
|
217
|
-
*/
|
|
218
|
-
export interface TimescaleFilter {
|
|
219
|
-
/** The playback speed 0.0 ≤ x */
|
|
220
|
-
speed?: number;
|
|
221
|
-
/** The pitch 0.0 ≤ x */
|
|
222
|
-
pitch?: number;
|
|
223
|
-
/** The rate 0.0 ≤ x */
|
|
224
|
-
rate?: number;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Uses amplification to create a shuddering effect, where the volume quickly oscillates.
|
|
228
|
-
* Demo: https://en.wikipedia.org/wiki/File:Fuse_Electronics_Tremolo_MK-III_Quick_Demo.ogv
|
|
229
|
-
*/
|
|
230
|
-
export interface TremoloFilter {
|
|
231
|
-
/** The frequency 0.0 < x */
|
|
232
|
-
frequency?: number;
|
|
233
|
-
/** The tremolo depth 0.0 < x ≤ 1.0 */
|
|
234
|
-
depth?: number;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Similar to tremolo. While tremolo oscillates the volume, vibrato oscillates the pitch.
|
|
238
|
-
*/
|
|
239
|
-
export interface VibratoFilter {
|
|
240
|
-
/** The frequency 0.0 < x ≤ 14.0 */
|
|
241
|
-
frequency?: number;
|
|
242
|
-
/** The vibrato depth 0.0 < x ≤ 1.0 */
|
|
243
|
-
depth?: number;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Rotates the sound around the stereo channels/user headphones (aka Audio Panning).
|
|
247
|
-
* It can produce an effect similar to https://youtu.be/QB9EB8mTKcc (without the reverb).
|
|
248
|
-
*/
|
|
249
|
-
export interface RotationFilter {
|
|
250
|
-
/** The frequency of the audio rotating around the listener in Hz. 0.2 is similar to the example video above */
|
|
251
|
-
rotationHz?: number;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Distortion effect. It can generate some pretty unique audio effects.
|
|
255
|
-
*/
|
|
256
|
-
export interface DistortionFilter {
|
|
257
|
-
sinOffset?: number;
|
|
258
|
-
sinScale?: number;
|
|
259
|
-
cosOffset?: number;
|
|
260
|
-
cosScale?: number;
|
|
261
|
-
tanOffset?: number;
|
|
262
|
-
tanScale?: number;
|
|
263
|
-
offset?: number;
|
|
264
|
-
scale?: number;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Mixes both channels (left and right), with a configurable factor on how much each channel affects the other.
|
|
268
|
-
* With the defaults, both channels are kept independent of each other.
|
|
269
|
-
* Setting all factors to 0.5 means both channels get the same audio.
|
|
270
|
-
*/
|
|
271
|
-
export interface ChannelMixFilter {
|
|
272
|
-
/** The left to left channel mix factor (0.0 ≤ x ≤ 1.0) */
|
|
273
|
-
leftToLeft?: number;
|
|
274
|
-
/** The left to right channel mix factor (0.0 ≤ x ≤ 1.0) */
|
|
275
|
-
leftToRight?: number;
|
|
276
|
-
/** The right to left channel mix factor (0.0 ≤ x ≤ 1.0) */
|
|
277
|
-
rightToLeft?: number;
|
|
278
|
-
/** The right to right channel mix factor (0.0 ≤ x ≤ 1.0) */
|
|
279
|
-
rightToRight?: number;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Higher frequencies get suppressed, while lower frequencies pass through this filter, thus the name low pass.
|
|
283
|
-
* Any smoothing values equal to or less than 1.0 will disable the filter.
|
|
284
|
-
*/
|
|
285
|
-
export interface LowPassFilter {
|
|
286
|
-
/** The smoothing factor (1.0 < x) */
|
|
287
|
-
smoothing?: number;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Filter Data stored in the Client and partially sent to Lavalink
|
|
291
|
-
*/
|
|
292
|
-
export interface FilterData {
|
|
293
|
-
volume?: number;
|
|
294
|
-
karaoke?: KaraokeFilter;
|
|
295
|
-
timescale?: TimescaleFilter;
|
|
296
|
-
tremolo?: TremoloFilter;
|
|
297
|
-
vibrato?: VibratoFilter;
|
|
298
|
-
rotation?: RotationFilter;
|
|
299
|
-
distortion?: DistortionFilter;
|
|
300
|
-
channelMix?: ChannelMixFilter;
|
|
301
|
-
lowPass?: LowPassFilter;
|
|
302
|
-
pluginFilters?: {
|
|
303
|
-
"lavalink-filter-plugin"?: {
|
|
304
|
-
"echo"?: {
|
|
305
|
-
delay?: number;
|
|
306
|
-
decay?: number;
|
|
307
|
-
};
|
|
308
|
-
"reverb"?: {
|
|
309
|
-
delays?: number[];
|
|
310
|
-
gains?: number[];
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
"high-pass"?: {
|
|
314
|
-
cutoffFrequency?: number;
|
|
315
|
-
boostFactor?: number;
|
|
316
|
-
};
|
|
317
|
-
"low-pass"?: {
|
|
318
|
-
cutoffFrequency?: number;
|
|
319
|
-
boostFactor?: number;
|
|
320
|
-
};
|
|
321
|
-
normalization?: {
|
|
322
|
-
maxAmplitude?: number;
|
|
323
|
-
adaptive?: boolean;
|
|
324
|
-
};
|
|
325
|
-
echo?: {
|
|
326
|
-
echoLength?: number;
|
|
327
|
-
decay?: number;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Actual Filter Data sent to Lavalink
|
|
333
|
-
*/
|
|
334
|
-
export interface LavalinkFilterData extends FilterData {
|
|
335
|
-
equalizer?: EQBand[];
|
|
336
|
-
}
|
|
337
|
-
export declare const EQList: {
|
|
338
|
-
/** A Bassboost Equalizer, so high it distorts the audio */
|
|
339
|
-
BassboostEarrape: EQBand[];
|
|
340
|
-
/** A High and decent Bassboost Equalizer */
|
|
341
|
-
BassboostHigh: EQBand[];
|
|
342
|
-
/** A decent Bassboost Equalizer */
|
|
343
|
-
BassboostMedium: EQBand[];
|
|
344
|
-
/** A slight Bassboost Equalizer */
|
|
345
|
-
BassboostLow: EQBand[];
|
|
346
|
-
/** Makes the Music slightly "better" */
|
|
347
|
-
BetterMusic: EQBand[];
|
|
348
|
-
/** Makes the Music sound like rock music / sound rock music better */
|
|
349
|
-
Rock: EQBand[];
|
|
350
|
-
/** Makes the Music sound like Classic music / sound Classic music better */
|
|
351
|
-
Classic: EQBand[];
|
|
352
|
-
/** Makes the Music sound like Pop music / sound Pop music better */
|
|
353
|
-
Pop: EQBand[];
|
|
354
|
-
/** Makes the Music sound like Electronic music / sound Electronic music better */
|
|
355
|
-
Electronic: EQBand[];
|
|
356
|
-
/** Boosts all Bands slightly for louder and fuller sound */
|
|
357
|
-
FullSound: EQBand[];
|
|
358
|
-
/** Boosts basses + lower highs for a pro gaming sound */
|
|
359
|
-
Gaming: EQBand[];
|
|
360
|
-
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FilterManager = void 0;
|
|
4
|
+
const Constants_1 = require("./Constants");
|
|
4
5
|
/**
|
|
5
6
|
* The FilterManager for each player
|
|
6
7
|
*/
|
|
@@ -78,16 +79,16 @@ class FilterManager {
|
|
|
78
79
|
// "cutoffFrequency": 284, // Integer, higher than zero, in Hz.
|
|
79
80
|
// "boostFactor": 1.24389 // Float, higher than 0.0. This alters volume output. A value of 1.0 means no volume change.
|
|
80
81
|
},
|
|
81
|
-
"normalization": { // Attenuates peaking where peaks are defined as having a higher value than {maxAmplitude}.
|
|
82
|
+
"normalization": { // Attenuates peaking where peaks are defined as having a higher value than {maxAmplitude}.
|
|
82
83
|
// "maxAmplitude": 0.6327, // Float, within the range of 0.0 - 1.0. A value of 0.0 mutes the output.
|
|
83
|
-
// "adaptive": true // false
|
|
84
|
+
// "adaptive": true // false
|
|
84
85
|
},
|
|
85
86
|
"echo": { // Self-explanatory; provides an echo effect.
|
|
86
87
|
// "echoLength": 0.5649, // Float, higher than 0.0, in seconds (1.0 = 1 second).
|
|
87
88
|
// "decay": 0.4649 // Float, within the range of 0.0 - 1.0. A value of 1.0 means no decay, and a value of 0.0 means
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
|
-
channelMix:
|
|
91
|
+
channelMix: Constants_1.audioOutputsData.stereo,
|
|
91
92
|
/*distortion: {
|
|
92
93
|
sinOffset: 0,
|
|
93
94
|
sinScale: 1,
|
|
@@ -253,9 +254,9 @@ class FilterManager {
|
|
|
253
254
|
// "cutoffFrequency": 284, // Integer, higher than zero, in Hz.
|
|
254
255
|
// "boostFactor": 1.24389 // Float, higher than 0.0. This alters volume output. A value of 1.0 means no volume change.
|
|
255
256
|
},
|
|
256
|
-
"normalization": { // Attenuates peaking where peaks are defined as having a higher value than {maxAmplitude}.
|
|
257
|
+
"normalization": { // Attenuates peaking where peaks are defined as having a higher value than {maxAmplitude}.
|
|
257
258
|
// "maxAmplitude": 0.6327, // Float, within the range of 0.0 - 1.0. A value of 0.0 mutes the output.
|
|
258
|
-
// "adaptive": true // false
|
|
259
|
+
// "adaptive": true // false
|
|
259
260
|
},
|
|
260
261
|
"echo": { // Self-explanatory; provides an echo effect.
|
|
261
262
|
// "echoLength": 0.5649, // Float, higher than 0.0, in seconds (1.0 = 1 second).
|
|
@@ -273,7 +274,7 @@ class FilterManager {
|
|
|
273
274
|
frequency: 0,
|
|
274
275
|
depth: 0 // 0 < x = 1
|
|
275
276
|
},
|
|
276
|
-
channelMix:
|
|
277
|
+
channelMix: Constants_1.audioOutputsData.stereo,
|
|
277
278
|
})) {
|
|
278
279
|
this.data[key] = value;
|
|
279
280
|
}
|
|
@@ -300,9 +301,9 @@ class FilterManager {
|
|
|
300
301
|
async setAudioOutput(type) {
|
|
301
302
|
if (this.player.node.info && !this.player.node.info?.filters?.includes("channelMix"))
|
|
302
303
|
throw new Error("Node#Info#filters does not include the 'channelMix' Filter (Node has it not enable)");
|
|
303
|
-
if (!type || !
|
|
304
|
+
if (!type || !Constants_1.audioOutputsData[type])
|
|
304
305
|
throw "Invalid audio type added, must be 'mono' / 'stereo' / 'left' / 'right'";
|
|
305
|
-
this.data.channelMix =
|
|
306
|
+
this.data.channelMix = Constants_1.audioOutputsData[type];
|
|
306
307
|
this.filters.audioOutput = type;
|
|
307
308
|
await this.applyPlayerFilters();
|
|
308
309
|
return this.filters.audioOutput;
|
|
@@ -383,7 +384,8 @@ class FilterManager {
|
|
|
383
384
|
throw new Error("Node#Info#filters does not include the 'rotation' Filter (Node has it not enable)");
|
|
384
385
|
this.data.rotation.rotationHz = this.filters.rotation ? 0 : rotationHz;
|
|
385
386
|
this.filters.rotation = !this.filters.rotation;
|
|
386
|
-
|
|
387
|
+
await this.applyPlayerFilters();
|
|
388
|
+
return this.filters.rotation;
|
|
387
389
|
}
|
|
388
390
|
/**
|
|
389
391
|
* Enables / Disables the Vibrato effect, (Optional: provide your Own Data)
|
|
@@ -671,229 +673,3 @@ class FilterManager {
|
|
|
671
673
|
}
|
|
672
674
|
}
|
|
673
675
|
exports.FilterManager = FilterManager;
|
|
674
|
-
/** The audio Outputs Data map declaration */
|
|
675
|
-
exports.audioOutputsData = {
|
|
676
|
-
mono: {
|
|
677
|
-
leftToLeft: 0.5,
|
|
678
|
-
leftToRight: 0.5,
|
|
679
|
-
rightToLeft: 0.5,
|
|
680
|
-
rightToRight: 0.5,
|
|
681
|
-
},
|
|
682
|
-
stereo: {
|
|
683
|
-
leftToLeft: 1,
|
|
684
|
-
leftToRight: 0,
|
|
685
|
-
rightToLeft: 0,
|
|
686
|
-
rightToRight: 1,
|
|
687
|
-
},
|
|
688
|
-
left: {
|
|
689
|
-
leftToLeft: 1,
|
|
690
|
-
leftToRight: 0,
|
|
691
|
-
rightToLeft: 1,
|
|
692
|
-
rightToRight: 0,
|
|
693
|
-
},
|
|
694
|
-
right: {
|
|
695
|
-
leftToLeft: 0,
|
|
696
|
-
leftToRight: 1,
|
|
697
|
-
rightToLeft: 0,
|
|
698
|
-
rightToRight: 1,
|
|
699
|
-
},
|
|
700
|
-
};
|
|
701
|
-
exports.EQList = {
|
|
702
|
-
/** A Bassboost Equalizer, so high it distorts the audio */
|
|
703
|
-
BassboostEarrape: [
|
|
704
|
-
{ band: 0, gain: 0.6 * 0.375 },
|
|
705
|
-
{ band: 1, gain: 0.67 * 0.375 },
|
|
706
|
-
{ band: 2, gain: 0.67 * 0.375 },
|
|
707
|
-
{ band: 3, gain: 0.4 * 0.375 },
|
|
708
|
-
{ band: 4, gain: -0.5 * 0.375 },
|
|
709
|
-
{ band: 5, gain: 0.15 * 0.375 },
|
|
710
|
-
{ band: 6, gain: -0.45 * 0.375 },
|
|
711
|
-
{ band: 7, gain: 0.23 * 0.375 },
|
|
712
|
-
{ band: 8, gain: 0.35 * 0.375 },
|
|
713
|
-
{ band: 9, gain: 0.45 * 0.375 },
|
|
714
|
-
{ band: 10, gain: 0.55 * 0.375 },
|
|
715
|
-
{ band: 11, gain: -0.6 * 0.375 },
|
|
716
|
-
{ band: 12, gain: 0.55 * 0.375 },
|
|
717
|
-
{ band: 13, gain: -0.5 * 0.375 },
|
|
718
|
-
{ band: 14, gain: -0.75 * 0.375 },
|
|
719
|
-
],
|
|
720
|
-
/** A High and decent Bassboost Equalizer */
|
|
721
|
-
BassboostHigh: [
|
|
722
|
-
{ band: 0, gain: 0.6 * 0.25 },
|
|
723
|
-
{ band: 1, gain: 0.67 * 0.25 },
|
|
724
|
-
{ band: 2, gain: 0.67 * 0.25 },
|
|
725
|
-
{ band: 3, gain: 0.4 * 0.25 },
|
|
726
|
-
{ band: 4, gain: -0.5 * 0.25 },
|
|
727
|
-
{ band: 5, gain: 0.15 * 0.25 },
|
|
728
|
-
{ band: 6, gain: -0.45 * 0.25 },
|
|
729
|
-
{ band: 7, gain: 0.23 * 0.25 },
|
|
730
|
-
{ band: 8, gain: 0.35 * 0.25 },
|
|
731
|
-
{ band: 9, gain: 0.45 * 0.25 },
|
|
732
|
-
{ band: 10, gain: 0.55 * 0.25 },
|
|
733
|
-
{ band: 11, gain: -0.6 * 0.25 },
|
|
734
|
-
{ band: 12, gain: 0.55 * 0.25 },
|
|
735
|
-
{ band: 13, gain: -0.5 * 0.25 },
|
|
736
|
-
{ band: 14, gain: -0.75 * 0.25 },
|
|
737
|
-
],
|
|
738
|
-
/** A decent Bassboost Equalizer */
|
|
739
|
-
BassboostMedium: [
|
|
740
|
-
{ band: 0, gain: 0.6 * 0.1875 },
|
|
741
|
-
{ band: 1, gain: 0.67 * 0.1875 },
|
|
742
|
-
{ band: 2, gain: 0.67 * 0.1875 },
|
|
743
|
-
{ band: 3, gain: 0.4 * 0.1875 },
|
|
744
|
-
{ band: 4, gain: -0.5 * 0.1875 },
|
|
745
|
-
{ band: 5, gain: 0.15 * 0.1875 },
|
|
746
|
-
{ band: 6, gain: -0.45 * 0.1875 },
|
|
747
|
-
{ band: 7, gain: 0.23 * 0.1875 },
|
|
748
|
-
{ band: 8, gain: 0.35 * 0.1875 },
|
|
749
|
-
{ band: 9, gain: 0.45 * 0.1875 },
|
|
750
|
-
{ band: 10, gain: 0.55 * 0.1875 },
|
|
751
|
-
{ band: 11, gain: -0.6 * 0.1875 },
|
|
752
|
-
{ band: 12, gain: 0.55 * 0.1875 },
|
|
753
|
-
{ band: 13, gain: -0.5 * 0.1875 },
|
|
754
|
-
{ band: 14, gain: -0.75 * 0.1875 },
|
|
755
|
-
],
|
|
756
|
-
/** A slight Bassboost Equalizer */
|
|
757
|
-
BassboostLow: [
|
|
758
|
-
{ band: 0, gain: 0.6 * 0.125 },
|
|
759
|
-
{ band: 1, gain: 0.67 * 0.125 },
|
|
760
|
-
{ band: 2, gain: 0.67 * 0.125 },
|
|
761
|
-
{ band: 3, gain: 0.4 * 0.125 },
|
|
762
|
-
{ band: 4, gain: -0.5 * 0.125 },
|
|
763
|
-
{ band: 5, gain: 0.15 * 0.125 },
|
|
764
|
-
{ band: 6, gain: -0.45 * 0.125 },
|
|
765
|
-
{ band: 7, gain: 0.23 * 0.125 },
|
|
766
|
-
{ band: 8, gain: 0.35 * 0.125 },
|
|
767
|
-
{ band: 9, gain: 0.45 * 0.125 },
|
|
768
|
-
{ band: 10, gain: 0.55 * 0.125 },
|
|
769
|
-
{ band: 11, gain: -0.6 * 0.125 },
|
|
770
|
-
{ band: 12, gain: 0.55 * 0.125 },
|
|
771
|
-
{ band: 13, gain: -0.5 * 0.125 },
|
|
772
|
-
{ band: 14, gain: -0.75 * 0.125 },
|
|
773
|
-
],
|
|
774
|
-
/** Makes the Music slightly "better" */
|
|
775
|
-
BetterMusic: [
|
|
776
|
-
{ band: 0, gain: 0.25 },
|
|
777
|
-
{ band: 1, gain: 0.025 },
|
|
778
|
-
{ band: 2, gain: 0.0125 },
|
|
779
|
-
{ band: 3, gain: 0 },
|
|
780
|
-
{ band: 4, gain: 0 },
|
|
781
|
-
{ band: 5, gain: -0.0125 },
|
|
782
|
-
{ band: 6, gain: -0.025 },
|
|
783
|
-
{ band: 7, gain: -0.0175 },
|
|
784
|
-
{ band: 8, gain: 0 },
|
|
785
|
-
{ band: 9, gain: 0 },
|
|
786
|
-
{ band: 10, gain: 0.0125 },
|
|
787
|
-
{ band: 11, gain: 0.025 },
|
|
788
|
-
{ band: 12, gain: 0.25 },
|
|
789
|
-
{ band: 13, gain: 0.125 },
|
|
790
|
-
{ band: 14, gain: 0.125 },
|
|
791
|
-
],
|
|
792
|
-
/** Makes the Music sound like rock music / sound rock music better */
|
|
793
|
-
Rock: [
|
|
794
|
-
{ band: 0, gain: 0.300 },
|
|
795
|
-
{ band: 1, gain: 0.250 },
|
|
796
|
-
{ band: 2, gain: 0.200 },
|
|
797
|
-
{ band: 3, gain: 0.100 },
|
|
798
|
-
{ band: 4, gain: 0.050 },
|
|
799
|
-
{ band: 5, gain: -0.050 },
|
|
800
|
-
{ band: 6, gain: -0.150 },
|
|
801
|
-
{ band: 7, gain: -0.200 },
|
|
802
|
-
{ band: 8, gain: -0.100 },
|
|
803
|
-
{ band: 9, gain: -0.050 },
|
|
804
|
-
{ band: 10, gain: 0.050 },
|
|
805
|
-
{ band: 11, gain: 0.100 },
|
|
806
|
-
{ band: 12, gain: 0.200 },
|
|
807
|
-
{ band: 13, gain: 0.250 },
|
|
808
|
-
{ band: 14, gain: 0.300 },
|
|
809
|
-
],
|
|
810
|
-
/** Makes the Music sound like Classic music / sound Classic music better */
|
|
811
|
-
Classic: [
|
|
812
|
-
{ band: 0, gain: 0.375 },
|
|
813
|
-
{ band: 1, gain: 0.350 },
|
|
814
|
-
{ band: 2, gain: 0.125 },
|
|
815
|
-
{ band: 3, gain: 0 },
|
|
816
|
-
{ band: 4, gain: 0 },
|
|
817
|
-
{ band: 5, gain: 0.125 },
|
|
818
|
-
{ band: 6, gain: 0.550 },
|
|
819
|
-
{ band: 7, gain: 0.050 },
|
|
820
|
-
{ band: 8, gain: 0.125 },
|
|
821
|
-
{ band: 9, gain: 0.250 },
|
|
822
|
-
{ band: 10, gain: 0.200 },
|
|
823
|
-
{ band: 11, gain: 0.250 },
|
|
824
|
-
{ band: 12, gain: 0.300 },
|
|
825
|
-
{ band: 13, gain: 0.250 },
|
|
826
|
-
{ band: 14, gain: 0.300 },
|
|
827
|
-
],
|
|
828
|
-
/** Makes the Music sound like Pop music / sound Pop music better */
|
|
829
|
-
Pop: [
|
|
830
|
-
{ band: 0, gain: 0.2635 },
|
|
831
|
-
{ band: 1, gain: 0.22141 },
|
|
832
|
-
{ band: 2, gain: -0.21141 },
|
|
833
|
-
{ band: 3, gain: -0.1851 },
|
|
834
|
-
{ band: 4, gain: -0.155 },
|
|
835
|
-
{ band: 5, gain: 0.21141 },
|
|
836
|
-
{ band: 6, gain: 0.22456 },
|
|
837
|
-
{ band: 7, gain: 0.237 },
|
|
838
|
-
{ band: 8, gain: 0.237 },
|
|
839
|
-
{ band: 9, gain: 0.237 },
|
|
840
|
-
{ band: 10, gain: -0.05 },
|
|
841
|
-
{ band: 11, gain: -0.116 },
|
|
842
|
-
{ band: 12, gain: 0.192 },
|
|
843
|
-
{ band: 13, gain: 0 },
|
|
844
|
-
],
|
|
845
|
-
/** Makes the Music sound like Electronic music / sound Electronic music better */
|
|
846
|
-
Electronic: [
|
|
847
|
-
{ band: 0, gain: 0.375 },
|
|
848
|
-
{ band: 1, gain: 0.350 },
|
|
849
|
-
{ band: 2, gain: 0.125 },
|
|
850
|
-
{ band: 3, gain: 0 },
|
|
851
|
-
{ band: 4, gain: 0 },
|
|
852
|
-
{ band: 5, gain: -0.125 },
|
|
853
|
-
{ band: 6, gain: -0.125 },
|
|
854
|
-
{ band: 7, gain: 0 },
|
|
855
|
-
{ band: 8, gain: 0.25 },
|
|
856
|
-
{ band: 9, gain: 0.125 },
|
|
857
|
-
{ band: 10, gain: 0.15 },
|
|
858
|
-
{ band: 11, gain: 0.2 },
|
|
859
|
-
{ band: 12, gain: 0.250 },
|
|
860
|
-
{ band: 13, gain: 0.350 },
|
|
861
|
-
{ band: 14, gain: 0.400 },
|
|
862
|
-
],
|
|
863
|
-
/** Boosts all Bands slightly for louder and fuller sound */
|
|
864
|
-
FullSound: [
|
|
865
|
-
{ band: 0, gain: 0.25 + 0.375 },
|
|
866
|
-
{ band: 1, gain: 0.25 + 0.025 },
|
|
867
|
-
{ band: 2, gain: 0.25 + 0.0125 },
|
|
868
|
-
{ band: 3, gain: 0.25 + 0 },
|
|
869
|
-
{ band: 4, gain: 0.25 + 0 },
|
|
870
|
-
{ band: 5, gain: 0.25 + -0.0125 },
|
|
871
|
-
{ band: 6, gain: 0.25 + -0.025 },
|
|
872
|
-
{ band: 7, gain: 0.25 + -0.0175 },
|
|
873
|
-
{ band: 8, gain: 0.25 + 0 },
|
|
874
|
-
{ band: 9, gain: 0.25 + 0 },
|
|
875
|
-
{ band: 10, gain: 0.25 + 0.0125 },
|
|
876
|
-
{ band: 11, gain: 0.25 + 0.025 },
|
|
877
|
-
{ band: 12, gain: 0.25 + 0.375 },
|
|
878
|
-
{ band: 13, gain: 0.25 + 0.125 },
|
|
879
|
-
{ band: 14, gain: 0.25 + 0.125 },
|
|
880
|
-
],
|
|
881
|
-
/** Boosts basses + lower highs for a pro gaming sound */
|
|
882
|
-
Gaming: [
|
|
883
|
-
{ band: 0, gain: 0.350 },
|
|
884
|
-
{ band: 1, gain: 0.300 },
|
|
885
|
-
{ band: 2, gain: 0.250 },
|
|
886
|
-
{ band: 3, gain: 0.200 },
|
|
887
|
-
{ band: 4, gain: 0.150 },
|
|
888
|
-
{ band: 5, gain: 0.100 },
|
|
889
|
-
{ band: 6, gain: 0.050 },
|
|
890
|
-
{ band: 7, gain: -0.0 },
|
|
891
|
-
{ band: 8, gain: -0.050 },
|
|
892
|
-
{ band: 9, gain: -0.100 },
|
|
893
|
-
{ band: 10, gain: -0.150 },
|
|
894
|
-
{ band: 11, gain: -0.200 },
|
|
895
|
-
{ band: 12, gain: -0.250 },
|
|
896
|
-
{ band: 13, gain: -0.300 },
|
|
897
|
-
{ band: 14, gain: -0.350 },
|
|
898
|
-
],
|
|
899
|
-
};
|