Discriminating the tempo variations of a musical excerpt