Magnitude-to-level conversion