Start with the body

The body size is the anchor. From there, a ratio can suggest progressively larger or smaller steps.

Do not use every step

A generated scale is a menu, not a requirement. Most interfaces need only a small subset: body, small, heading, display, and perhaps one intermediate level.

Optical adjustment is allowed

Mathematical consistency is not the same as visual consistency. Round values and adjust line-height when the typography needs it.