Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Pre-gain for non-replaygain tracks.
« previous next »
  • Print
Pages: [1]

Author Topic: Pre-gain for non-replaygain tracks.  (Read 3489 times)

Offline nwimpney

  • Member
  • *
  • Posts: 5
Pre-gain for non-replaygain tracks.
« on: June 13, 2011, 05:56:48 PM »
This subject has been mentioned before in other threads, but I think it deserves its own.

It would be good to have an option that sets a pre-amp value for tracks that don't have replay gain tags.

This way, when you play a track that isn't tagged, it will be reduced to a volume similar to the reference level (obviously only a guess, depending what you have it set to) instead of playing it at full volume.

Currently, the suggested behaviour is to set a pre-gain to compensate for your estimated average replaygain values, but that seems pretty backwards.

-Nick
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Pre-gain for non-replaygain tracks.
« Reply #1 on: June 13, 2011, 06:22:42 PM »
IIRC we decided at some point years ago that we wanted this, and have just been waiting for someone to add it.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Pre-gain for non-replaygain tracks.
« Reply #2 on: June 13, 2011, 10:52:17 PM »
Isn't this the Equalizer Pre-Amp? His stated purpose was to decrease, and that's already possibly in Rockbox independently of the presence of replaygain tags.

Edit: I may have misunderstood - do you mean for non-replaygained track within a mixed collection? It seems like you shouldn't apply replaygain settings to non-replaygain tracks, but again you could use pre-amp from the equalizer to increase the volume of your tracks in general, and pre-cut in replaygain itself to adjust only those tracks with tags allowing you to adjustthe wo types of tracks separately.
« Last Edit: June 13, 2011, 10:56:11 PM by Llorean »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Pre-gain for non-replaygain tracks.
« Reply #3 on: June 14, 2011, 12:07:59 AM »
Quote from: Llorean on June 13, 2011, 10:52:17 PM
I may have misunderstood - do you mean for non-replaygained track within a mixed collection? It seems like you shouldn't apply replaygain settings to non-replaygain tracks, but again you could use pre-amp from the equalizer to increase the volume of your tracks in general, and pre-cut in replaygain itself to adjust only those tracks with tags allowing you to adjustthe wo types of tracks separately.

Basically, right now we have a precut for replaygain tracks, and a global one in the EQ, but no way to apply a separate one to tracks that are missing replaygain info.   
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Pre-gain for non-replaygain tracks.
« Reply #4 on: June 14, 2011, 01:31:02 AM »
Isn't applying one to all tracks with Replaygain info the opposite amount and then globally compensating mathematically exactly the same?

Subtract 6 from non scanned tracks is the same as adding six to scanned ones and subtracting six globally. Why do we need even more settings?

Why would you prefer to adjust nonscanned tracks only rather than scanned track only? You could raise scanned by 6 or lower nonscanned by six and either way you get the same difference, then just adjust the global level or even just the volume.
« Last Edit: June 14, 2011, 01:33:44 AM by Llorean »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Pre-gain for non-replaygain tracks.
« Reply #5 on: June 14, 2011, 11:20:27 AM »
Quote from: Llorean on June 14, 2011, 01:31:02 AM
Isn't applying one to all tracks with Replaygain info the opposite amount and then globally compensating mathematically exactly the same?

You might be able to work around this by applying an EQ precut of X dB and then raising the replaygain reference level by X dB.  That should prevent replaygain from making tracks quieter.  However I'm not 100% certain of the order in which the gain is applied, so I'm not sure if it'd work without distortion.

Regardless, most replaygain implementations do offer a precut for non-RG tracks, so we should probably do so as well.  If the EQ precut is done first, then it could simply adjust that. 
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Pre-gain for non-replaygain tracks.
« Reply #6 on: June 22, 2011, 05:04:55 PM »
Quote from: nwimpney on June 13, 2011, 05:56:48 PM
It would be good to have an option that sets a pre-amp value for tracks that don't have replay gain tags.

I just adjusted the replay gain pre-amp so that replay gain tagged files sounded about the same level as un-tagged files. What's wrong with doing that?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Pre-gain for non-replaygain tracks.
« Reply #7 on: June 22, 2011, 05:12:38 PM »
Quote from: Multiplex on June 22, 2011, 05:04:55 PM
Quote from: nwimpney on June 13, 2011, 05:56:48 PM
It would be good to have an option that sets a pre-amp value for tracks that don't have replay gain tags.

I just adjusted the replay gain pre-amp so that replay gain tagged files sounded about the same level as un-tagged files. What's wrong with doing that?

More clipping, although maybe not enough to really be annoying. 
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Pre-gain for non-replaygain tracks.
« Reply #8 on: June 22, 2011, 11:57:28 PM »
If pre-amp and pre-cut are applied simultaneously (or just, well, well) that should allow you to prevent any additional clipping, right?
« Last Edit: June 23, 2011, 12:40:28 AM by Llorean »
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Pre-gain for non-replaygain tracks.
« Reply #9 on: July 05, 2011, 04:35:48 PM »
Quote from: saratoga on June 22, 2011, 05:12:38 PM
More clipping, although maybe not enough to really be annoying. 
Erm.. actually I apply negative gain - a cut. I also have Prevent clipping enabled - it works a treat for me but my hearing certainly isn't what it used to be...

Sorry if I sound argumentative - I just want to be sure I'm not doing something stupid :-)
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Pre-gain for non-replaygain tracks.
« Reply #10 on: July 05, 2011, 04:46:10 PM »
Quote from: Multiplex on July 05, 2011, 04:35:48 PM
Quote from: saratoga on June 22, 2011, 05:12:38 PM
More clipping, although maybe not enough to really be annoying. 
Erm.. actually I apply negative gain - a cut.

Doesn't matter, you can still get clipping with lossy files even if you apply a negative gain.  Thats why the replaygain reference levels are so low, you need to cut off quite a few db to be sure theres no clipping due to rounding errors and quantization artifacts.  Basically, if you raise the replygain reference level, you'll get more clipping, although IME its usually not noticeable. 

Quote from: Multiplex on July 05, 2011, 04:35:48 PM
I also have Prevent clipping enabled - it works a treat for me but my hearing certainly isn't what it used to be...

Then you won't get clipping, but your tracks won't also play at exactly the same volume, since each will be randomly lowered a few dB. 

Quote from: Multiplex on July 05, 2011, 04:35:48 PM
Sorry if I sound argumentative - I just want to be sure I'm not doing something stupid :-)

No nothing stupid, just something audio purists seem to care about.  If you don't notice a problem, don't worry about it.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Pre-gain for non-replaygain tracks.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 15 queries.