Convert semitone offset to ratio value

For an offset of semitones, set the ratio near to value: