Geometric properties of musical rhythms