Irrational time signatures for metric modulation

Time signatures with denominators that are not powers of two can be used easily in LilyPond, by setting the time signatures you want and scaling the rhythmic value by the appropriate amount. The scaling fraction involves a denominator that is the same as that of the time signature and a numerator that is of the appropriate fractional relationship for the time signature. For instance, since seven divisions of the whole note would be written as with seven notes resembling quarters, the scaling fraction for seventh measures would be 4/7. LilyPond correctly produces MIDI files for these time signatures; uncomment the \midi line to check this.