The use of microtonal music scales (other than those, which is based on the equal tempered twelve semitones) is discussed. The western musical tuning notation is widely used now, but it is not quite adequate to record some modern genres (e.g. rock music) as well as many ancient and/or non-European compositions (E.g. Byzantine or Indian music). A mathematical approach based on solving simultaneous Diophantine approximation by the use of linear programming software is proposed and some experimental results are presented. An application towards the optimization of MIDI computer file standard is outlined.