Added rhythm analysis framework (only flat rhythms)