Optimize ReducedFraction: compare via double (enough for MIDI)