The Geometry of Musical Rhythm