Resample gain

there’s a link in this thread which may give you some food for thought !