Add RhythmicPatter#to_fractions.