"Render Selection To Sample"-Output Is Approx -6 Db

The magic number you’re looking for is a rather strange one, actually:
6.0205999132796239042747778944899 dB

…or simply (and very slightly less accurate):
6.021 dB

Why this number? Well, it’s a long story, but I believe it relates to the fact that gain levels in Renoise used to be represented as percentages rather than dB, so you would typically be making adjustments of 50% or 200% and things like that. (Edit: I should clarify, this is also quite common in other apps as well)

50% gain = -6.0205999132796239042747778944899 dB

200% gain = +6.0205999132796239042747778944899 dB

So I think that the “render selection to sample” feature currently outputs at 50% of the master output level, resulting in this odd dB level that we have to compensate for afterwards.

See this thread for reference:

It is rather unfortunate quirk, but at least now you know. Some of us have suggested in the past that this reduction in volume should be an optional thing - something that can either be adjusted or turned off altogether if the user chooses to. Hopefully it will change in the future so we can avoid this type of confusion.