Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Multiband ReplayGain? Does it make any sense? (Read 5173 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Multiband ReplayGain? Does it make any sense?

Current ReplayGain implementation calculates a global loudness value. I'm wondering if it makes sense to create a new variant which calculates ReplayGain values for subbands? Say i like to make the equalization constant, a player which understands these new gain values could automatically adjust the EQ values to match my needs. A track which already contains loud trebles will not get any treble boost and vica versa. I know multiband compressors are doing the same in real time but this wouldn't require anything special during playback since it's only a matter of adding an EQ based on the precalculated values.


Multiband ReplayGain? Does it make any sense?

Reply #2
Ah, i've remembered we've had a talk about this earlier.  Although you're idea works differently because it still calculates one replaygain value, not sepearate values for each band of the original file.

My question from that topic is still valid though. I wonder what happens if i bandpass the spectrum into different bands and apply the replay gain RMS calculation on top of them. Do i get usable gain values for a further EQ correction of the bands?

Multiband ReplayGain? Does it make any sense?

Reply #3
Somehow, making all of the bands equally loud doesn't sound like a good idea. Or am I misinterpreting what you wanted?

Multiband ReplayGain? Does it make any sense?

Reply #4
Say i like the sound of an EQ preset where the bass and highs are boosted. Some songs have already very loud bass and treble, so it's not a good idea to boost them further because it will introduce distortion and/or heavy clipping. In this case the player uses an offset calculated from the band's replaygain to reduce the effect of the EQ at those bands. Some songs may have very quiet mids and highs and very loud bass (The Fugees: Ready or Not is a very good example for this). In this case the player knows that it has to raise the gain on the mids and highs to keep the overall EQ image constant.

This thing is very close to what radios are doing to have a constant sounding of the station. It's not something you have to use all the time. If you wish to return to the original mastering you just simply turn of the correction. It's only an additional metadata, nothing's altered. But if you want to listen to radio like sound or hate altering the EQ from song-to-song this might be a solution if you don't want to use heavyweight DSPs.

 

Multiband ReplayGain? Does it make any sense?

Reply #5
On the simplest level, affecting the sound in any way other than adjusting its overall volume goes far beyond the intent of RG, R128, and co. Sure, some of the algorithms assess perceptual loudness in ways that consider different frequencies/bands separately, but those considerations are collated to adjust the final loudness only.

Also, as pdq pointed out, there are likely to be logistical issues implementing what you want in any form. Tandem to this, it would help if you would make your hopes clearer. What do you actually want? Something that can take an EQ curve of your preference and adjust a given track on a multi-band level until its own overall spectrum approximates that curve? What sort(s) of windows should it use? There are likely to be a lot of big questions like this involved.

In any case, I doubt ReplayGain is the right context for talking about this idea.

Multiband ReplayGain? Does it make any sense?

Reply #6
What do you actually want? Something that can take an EQ curve of your preference and adjust a given track on a multi-band level until its own overall spectrum approximates that curve?

Yes, exactly. The difference is that multiband compressors are doing this in real time and adjusting their parameters very fast based on the input signal. My idea is to calculate an average loudness (RMS?) of the subbands during the whole track and store these values in the metadata and while playing apply a calculated EQ (based on the metadata and the user's preference) to the whole track. This is why i thought about ReplayGain which does the same but for the whole spectrum. Moving on to the next track will yield in a different EQ correction, and so on.

I have very little knowledge in DSPs so yes it's possible that my idea is wrong in it's roots but i was curious if it's doable or not and if it will sound natural in the context of radio like processing. I know that DSPs made for radio stations are a lot more complex than that. I don't want such heavy audio alternation but something that's lightweight enough to be even used on a portable device but still gives an acceptable result.

Multiband ReplayGain? Does it make any sense?

Reply #7
The problem you hit with a simplistic implementation is that some tracks should have more highs or lows than some other tracks, which leads to some weird corrections being applied if you blindly match them. Compare a solo female voice with a typical dance track: you can't match the amount of bass on them.

I bet this is a solved problem (content type identification, gating, limited changes etc plus loads of knowledge from compressor design), but I haven't tried to find that solution. I end up manually remastering (mostly just re-EQing) the worst recordings I have to fit in with what I consider to be "normal".

Dynamic range, stereo separation, the amount of reverb and the amount of background hiss are also things that vary dramatically between certain recordings and could be automatically or manually "fixed" - but you're really heading into "easier to do more harm that good" territory when you mess with those, even manually. That shouldn't stop you doing it for your own listening if you really want to though.

Cheers,
David.

Multiband ReplayGain? Does it make any sense?

Reply #8
Thinking about this more, I think you could use replaygain to do the matching for similar types of music. I'm imagining it as a tool within an audio editor. There should be one track or preset which you want to match to, and another track which is the actual audio you want to change. Then you pick the number of analysis bands and how much correction you want to apply (100% or less) and listen to the result. If you don't like it, try a different number of bands or different target eq or a different amount of adjustment.

Gated rms measurement is probably a good start. Ebu r128 is fine, but with enough bands the ebu r128 filter becomes irrelevant.

Someone has probably already solved the problem even more elegantly, but the O.P.'s suggestion is a good idea if you match the levels of each band to something sensible and relevant.

Cheers,
David.

Multiband ReplayGain? Does it make any sense?

Reply #9
Thanks David for explaining.
Your example of comparing dance music to a solo female vocal track is makes sense. I thought about this aswell. My idea is very raw in it's current form so i never thought this would end up in any useable in it's current state. But i thought it would be a great conversation starter for thinking about something similar

Multiband ReplayGain? Does it make any sense?

Reply #10
With a good ear and experience, it would be quicker just to use EQ to get what you want - but your idea offers the possibility of semi-automation - useful for batch processing and/or when you don't have a clue what to do.

I've tried it on a couple of songs and it worked well. I need to try it on some more demanding and obvious tracks.

Cheers,
David.


Multiband ReplayGain? Does it make any sense?

Reply #12
It can be done but not with something like ReplayGain - your output will be a completely new file (which I would advice not to convert to MP3 again).

The trick for multiband compressors, that you could also use for this, is:
1 -  Avoid huge differences between bands.
2. - Avoid very steep slopes between bands.
3. - Have a maximum amount of correction. If one band is decreased by 20 dB and another is increased by 20 dB, you can be pretty sure that it will sound horrible. See also the previous 2 points