You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Equalizer can be accessed with queue.connection.equalizer which may be EqualizerStream instance or null. Just like inline volume, equalizer can be disabled by passing disableEqualizer: true to createQueue.
if(!queue.isEqualizerEnabled())returnmessage.reply("Equalizer is not available");constbands=[{band: 0,gain: 0.25},{band: 1,gain: 0.25},{band: 2,gain: 0.25},];// apply configqueue.setEqualizer(bands);// toggle equalizer on/offqueue.toggleEqualizer();queue.enableEqualizer();queue.disableEqualizer();// get equalizer statequeue.getEqualizer();// Pass nothing or pass an empty array to reset equalizerqueue.setEqualizer();queue.setEqualizer([]);// set specific bandqueue.setEqualizerBand(band,gain);// get specific bandqueue.getEqualizerBand(band);
Note: Equalizer runs before volume transformer and after ffmpeg and thus it may change ffmpeg filters behavior.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What's Changed
New Equalizer API
Equalizer can be accessed with
queue.connection.equalizer
which may beEqualizerStream
instance ornull
. Just like inline volume, equalizer can be disabled by passingdisableEqualizer: true
tocreateQueue
.New Contributors
Full Changelog: v5.3.2...v5.4.0
This discussion was created from the release 5.4.0.
Beta Was this translation helpful? Give feedback.
All reactions