pub fn step_rate(rate: f32, up: bool) -> f32
The next speed up (or down) from rate; the ends stay put. A rate not in RATES moves to the nearest step in that direction.
rate
RATES