Page 1 of 1
Equalizer sound effect is strange
Posted: Mon Apr 06, 2020 12:00 am
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?
Re: Equalizer sound effect is strange
Posted: Mon Apr 06, 2020 10:57 am
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.
Re: Equalizer sound effect is strange
Posted: Mon Apr 06, 2020 12:22 pm
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.