improving $rg2sc

Hello,

Is it possible to add a second argument to the $rg2sc function to make it possible to adjust the gain in iTunes.

The replaygain adjusts the volume to 89db. Sometimes the user want to adjust this value (for example 94 db)

Exemple :
if the field %REPLAYGAIN_ALBUM_GAIN% of the song is -1.40 db, the function
$rg2sc(%REPLAYGAIN_ALBUM_GAIN%) will give -1.40 db to iTunes.

if a function $rg2scadj(RG, x) is created the result send to iTunes will be RG + x db
$rg2scadj(%REPLAYGAIN_ALBUM_GAIN%, +5) will give +3.6 db to iTunes

A variant can be created to prevent clipping with e third argument using the REPLAYGAIN_ALBUM_PEAK field.
Example $rg2scadj(%REPLAYGAIN_ALBUM_GAIN%, %REPLAYGAIN_ALBUM_PEAK%, +5)

Is it possible to add this feature in a future release ?

Thanks in advance.

Interesting idea. One thought though. Can't you actually set the target db (89 vs something else) when you replaygain scan the files to begin with based on something other than 89db (either in fb2k or dbpoweramp, etc.). Then the itunes soundcheck value would be based on the replaygain value you'd like without the adjustment you suggest. Or is it that you do not want to change the replaygain values EXCEPT for within ITUNES?

What about $add() or $sub() function?

thanks,

the $add function doesn't work as excepted. the result is a integer.

If the %REPLAYGAIN_ALBUM_GAIN% is -1,84 db, ther result of
$add(%REPLAYGAIN_ALBUM_GAIN%, 5) is 4,00 and not 3,16.

No, fb2k doesn't allow to set a target db. 89db is a standard for replaygain. The targest volume can be only adjusted on playback.

Yep, I was confused. Not sure where I saw this possibility. May have been in the program MP3GAIN. But agreed...as I look back at fb2k and dbpa I see there is no option to change from 89db.