Skip to content
Advertisement

Bass Boost – JDA Lavaplayer

How would you create a bass boost command when you are using Lavaplayer with JDA (Java Discord API)?

Have a command like !bassboost 0-100.

Advertisement

Answer

After hours of trying different things to get it to function correctly I ended up using a Lavaplayer EqualizerFactory.

Firstly I copied these values from here

JavaScript

then I created a new EqualizerFactory and added it as a filter to the guild music manager and also set the frame buffer duration to make the bass-boost take less time to take effect like so:

JavaScript

then I finally created a little method that you can provide from 0-200 to set the bass-boost level

JavaScript

so that the bass-boost took effect on the current playing song I needed this:

JavaScript

and that’s about it really!

User contributions licensed under: CC BY-SA
11 People found this is helpful
Advertisement