# ReplayGain

This function is used to calculate ReplayGain parameters. The functionality is currently not available for APE, DFF, DFS, OGG and WV files.

There are three modes:

Track only
  Only the per track parameters are calculated.
Track and Album on all selected files
  The track and album parameters are calculated. All selected files are assumed to be in the same album.
Track and Album based on Album field
  The track and album parameters are calculated. Albums are grouped based on the Album field. Tracks with an empty Album field, will not have the Album parameters calculated.

The statement is valid in all execution modes. However Album calculations will be equal to the Track calculations when the statement is executed grouped.

The calculated information is stored in normalized UDTIs named: ReplayGain Album Gain, ReplayGain Album Peak, ReplayGain Track Gain and ReplayGain Track Peak. All previous values are removed before the process starts.

The process runs silently. If a track does not have a ReplayGain Track Gain value, something went wrong.