# Add Album Volume Increase via Replay Gain Tag

**URL:** https://community.mp3tag.de/t/add-album-volume-increase-via-replay-gain-tag/10978
**Category:** Support
**Created:** [October 20, 2010, 1:31pm UTC](https://community.mp3tag.de/t/add-album-volume-increase-via-replay-gain-tag/10978 "2010-10-20T13:31:43Z")
**Posts on this page:** 1
**Showing post:** 23

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 2, 2012, 8:02pm UTC](https://community.mp3tag.de/t/add-album-volume-increase-via-replay-gain-tag/10978/23 "2012-02-02T20:02:45Z")

</div>

**Add or subtract negative or positive value to REPLAYGAIN\_TRACK\_GAIN value or REPLAYGAIN\_ALBUM\_GAIN value.**

Here are two action groups, which perhaps are easier to read and to understand how the process of adding or subtracting of a value works, than an endless Mp3tag one line tape worm scripting expression.

The modifier value (numeric string with leading +/- sign character), for example _+600_ (represents +6 dB) or _-450_ (represents -4.5 dB) or whatever value is allowed by the ReplayGain method, can be set in the first action from each action group.

Each action group takes care and tries to store the group of four ReplayGain values in the same order into the media file as it might be expected by other ReplayGain ready applications.  
Above in this thread read about the behaviour of WinAmp when the order of the ReplayGain tag-fields is disarranged.

Begin Action Group **RG#ReplayGainTrackGain.Modify** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_MODIFIER**  
_Formatstring:_ **+600**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_TEMP**  
_Formatstring:_ **%REPLAYGAIN\_TRACK\_GAIN%**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_TEMP**  
_Formatstring:_ **$num($replace(%RGTG\_TEMP%,'.',),1)**

 

Action #4  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_TEMP**  
_Formatstring:_ **$add(%RGTG\_TEMP%,%RGTG\_MODIFIER%)**

 

Action #5  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_SIGN**  
_Formatstring:_ **$if($less(%RGTG\_TEMP%,0),'-',)**

 

Action #6  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_TEMP**  
_Formatstring:_ **$trimLeft(%RGTG\_TEMP%,'-')**

 

Action #7  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGTG\_TEMP**  
_Formatstring:_ **$div(%RGTG\_TEMP%,100)'.'$num($mod(%RGTG\_TEMP%,100),2)**

 

Action #8  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_TRACK\_GAIN**  
_Formatstring:_ **%RGTG\_SIGN%%RGTG\_TEMP%'÷dB'**

 

Action #9  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **RGTG\_TEMP;RGTG\_SIGN;RGTG\_MODIFIER**

 

Action #10  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_ALBUM\_GAIN**  
_Formatstring:_ **%REPLAYGAIN\_ALBUM\_GAIN%**

 

Action #11  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_ALBUM\_PEAK**  
_Formatstring:_ **%REPLAYGAIN\_ALBUM\_PEAK%**

 

Action #12  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_TRACK\_GAIN**  
_Formatstring:_ **%REPLAYGAIN\_TRACK\_GAIN%**

 

Action #13  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_TRACK\_PEAK**  
_Formatstring:_ **%REPLAYGAIN\_TRACK\_PEAK%**

 

_Note: Replace each special ÷ character with one space character._  
End Action Group **RG#ReplayGainTrackGain.Modify** (13 Actions)

Begin Action Group **RG#ReplayGainAlbumGain.Modify** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_MODIFIER**  
_Formatstring:_ **+600**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_TEMP**  
_Formatstring:_ **%REPLAYGAIN\_ALBUM\_GAIN%**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_TEMP**  
_Formatstring:_ **$num($replace(%RGAG\_TEMP%,'.',),1)**

 

Action #4  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_TEMP**  
_Formatstring:_ **$add(%RGAG\_TEMP%,%RGAG\_MODIFIER%)**

 

Action #5  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_SIGN**  
_Formatstring:_ **$if($less(%RGAG\_TEMP%,0),'-',)**

 

Action #6  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_TEMP**  
_Formatstring:_ **$trimLeft(%RGAG\_TEMP%,'-')**

 

Action #7  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **RGAG\_TEMP**  
_Formatstring:_ **$div(%RGAG\_TEMP%,100)'.'$num($mod(%RGAG\_TEMP%,100),2)**

 

Action #8  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_ALBUM\_GAIN**  
_Formatstring:_ **%RGAG\_SIGN%%RGAG\_TEMP%'÷dB'**

 

Action #9  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **RGAG\_TEMP;RGAG\_SIGN;RGAG\_MODIFIER**

 

Action #10  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_ALBUM\_GAIN**  
_Formatstring:_ **%REPLAYGAIN\_ALBUM\_GAIN%**

 

Action #11  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_ALBUM\_PEAK**  
_Formatstring:_ **%REPLAYGAIN\_ALBUM\_PEAK%**

 

Action #12  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_TRACK\_GAIN**  
_Formatstring:_ **%REPLAYGAIN\_TRACK\_GAIN%**

 

Action #13  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **REPLAYGAIN\_TRACK\_PEAK**  
_Formatstring:_ **%REPLAYGAIN\_TRACK\_PEAK%**

 

_Note: Replace each special ÷ character with one space character._  
End Action Group **RG#ReplayGainAlbumGain.Modify** (13 Actions)

The Mp3tag MTA files ...

[RG\_ReplayGainTrackGain.Modify.mta](https://community.mp3tag.de/uploads/default/original/2X/2/2c940e38b6c02b9a8797bae85c6bf29852c9029c.mta) (802 Bytes)  
[RG\_ReplayGainAlbumGain.Modify.mta](https://community.mp3tag.de/uploads/default/original/2X/c/c6c107b9359a86d6a05bec9b5cd2fc358356df82.mta) (802 Bytes)

DD.20120202.2202.CET

[RG\_ReplayGainAlbumGain.Modify.mta](https://community.mp3tag.de/uploads/default/original/2X/c/c6c107b9359a86d6a05bec9b5cd2fc358356df82.mta) (802 Bytes)

[RG\_ReplayGainTrackGain.Modify.mta](https://community.mp3tag.de/uploads/default/original/2X/2/2c940e38b6c02b9a8797bae85c6bf29852c9029c.mta) (802 Bytes)

---

_[View the full topic](https://community.mp3tag.de/t/add-album-volume-increase-via-replay-gain-tag/10978)._
