From c16c730c4dc77f04f6f21fb90572f4f175497a63 Mon Sep 17 00:00:00 2001 From: Snowflake <46562212+Snowflake107@users.noreply.github.com> Date: Mon, 22 Jun 2020 00:24:27 +0545 Subject: [PATCH] Add and fix filters (#32) Co-authored-by: Androz --- src/Player.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Player.js b/src/Player.js index a476f00..23661d5 100644 --- a/src/Player.js +++ b/src/Player.js @@ -13,6 +13,7 @@ const Track = require('./Track') * @property {boolean} [nightcore=false] Whether the nightcore filter is enabled. * @property {boolean} [phaser=false] Whether the phaser filter is enabled. * @property {boolean} [tremolo=false] Whether the tremolo filter is enabled. + * @property {boolean} [vibrato=false] Whether the vibrato filter is enabled. * @property {boolean} [reverse=false] Whether the reverse filter is enabled. * @property {boolean} [treble=false] Whether the treble filter is enabled. * @property {boolean} [normalizer=false] Whether the normalizer filter is enabled. @@ -24,12 +25,13 @@ const Track = require('./Track') const filters = { bassboost: 'bass=g=20,dynaudnorm=f=200', '8D': 'apulsator=hz=0.128', - vaporwave: 'asetrate=441000*.8,aresample=44100,atempo=1.1', - nightcore: 'asetrate=441001*.25', + vaporwave: 'asetrate=44100*0.8,aresample=44100,atempo=1.1', + nightcore: 'asetrate=44100*1.25', phaser: 'aphaser=in_gain=0.4', - tremolo: 'tremolo=f=6.5', + tremolo: 'tremolo', + vibrato: 'vibrato=f=6.5', reverse: 'areverse', - treble: 'treble=g={GAIN}', + treble: 'treble=g=5', normalizer: 'dynaudnorm=f=150', surrounding: 'surround', pulsator: 'apulsator=hz=1',