Equalizer sound effect is strange

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
scoobyff666
Prole
Posts: 14
Joined: Fri Sep 16, 2016 5:21 am

Equalizer sound effect is strange

Post by scoobyff666 »

I could not find any detailed documentation, but I suppose units used in equalizer sound effect would be db and hz, right?

I'm noticing that put negative db in gain for any band does not make anything. Also I can't make the highcut work, even setting highcut to 100 (very low) and highgain to -20 I still get unmidified sound.

The only real difference I can get in sound using the equalizer is setting a positive gain to one of the bands.

Can someone explain how exactly this equalizer works?
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Equalizer sound effect is strange

Post by zorg »

I'll assume you found this already: https://love2d.org/wiki/EffectType
this is the very dry very long OpenAL doc for the effects extension: https://kcat.strangesoft.net/misc-downl ... 0Guide.pdf
And here's the relevant part snipped out:

Code: Select all

AL_EFFECT_EQUALIZER
Parameter name, Units, Range, Default value
AL_EQUALIZER_LOW_GAIN       [   0.126,     7.943]    1.0
AL_EQUALIZER_LOW_CUTOFF Hz  [  50.0,     800.0]    200.0
AL_EQUALIZER_MID1_GAIN      [   0.126,     7.943]    1.0
AL_EQUALIZER_MID1_CENTER Hz [ 200.0,    3000.0]    500.0
AL_EQUALIZER_MID1_WIDTH     [   0.01,      1.0]      1.0
AL_EQUALIZER_MID2_GAIN      [   0.126,     7.943]    1.0
AL_EQUALIZER_MID2_CENTER    [1000.0,    8000.0]   3000.0
AL_EQUALIZER_MID2_WIDTH     [   0.01,      1.0]      1.0
AL_EQUALIZER_HIGH_GAIN      [   0.126,     7.943]    1.0
AL_EQUALIZER_HIGH_CUTOFF Hz [4000.0,   16000.0]   6000.0 
So while the frequency centers and cutoffs are in Hz, the gain seems to be something like a multiplier; i couldn't find any coherent reference to the two width parameters though, in that while i know what they do, idk what the narrowest and the widest setting represent.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
scoobyff666
Prole
Posts: 14
Joined: Fri Sep 16, 2016 5:21 am

Re: Equalizer sound effect is strange

Post by scoobyff666 »

Ohh thanks! I'll try this out. Maybe we can link this documentation in this page of the wiki to help others out, or maybe add the information directly to the page, about the units and ranges of each parameter.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests