All midi import base on fractions
Reduce fractions to prevent int overflow