INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: RG value in file vs RG value showed inside MC  (Read 875 times)

magnust

  • Galactic Citizen
  • ****
  • Posts: 380
RG value in file vs RG value showed inside MC
« on: February 01, 2013, 03:16:48 pm »

Can I create a column in MC that shows the RG value in the way it's shown in the file itself? Instead of the current way RG is showed which is slightly offset (yep, I've read the thread on the background to why this is so).
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: RG value in file vs RG value showed inside MC
« Reply #1 on: February 01, 2013, 05:46:16 pm »

You can use the following expression in a calculated user field or an expression column:

Delimit(
    FormatNumber(
        Math(
            Replace(
                RemoveCharacters([Replay Gain], dB)
            ,/,,.)
        +6)
    ,2)/
,/ dB)


It does not read the physical file tag, but it reverts the math that corrects the difference between the 89 dB (file tag) and 83 dB (database) reference values and displays the result in the familiar format.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: RG value in file vs RG value showed inside MC
« Reply #2 on: February 01, 2013, 07:44:21 pm »

I use:

  regex([replay gain],/#(-?\d+)(.*)$#/, -1)Math([[R1] + 6])[R2]
Logged
The opinions I express represent my own folly.

magnust

  • Galactic Citizen
  • ****
  • Posts: 380
Re: RG value in file vs RG value showed inside MC
« Reply #3 on: February 02, 2013, 04:39:58 am »

Thank you!!! Works like a charm  ;D ;D ;D ;D
Logged
Pages: [1]   Go Up