Skip to main content
Log in

Exact and approximate rhythm matching algorithms

  • Published:
International Journal on Digital Libraries Aims and scope Submit manuscript

Abstract

An interesting problem in music information retrieval is to classify songs according to rhythms. A rhythm is represented by a sequence of “Quick” (Q) and “Slow” (S) symbols, which correspond to the (relative) duration of notes, such that S = 2Q. Christodoulakis et al. presented an efficient algorithm that can be used to classify musical sequences according to rhythms. In this article, the above algorithm is implemented, along with a naive brute force algorithm to solve the same problem. The theoretical time complexity bounds are analyzed with the actual running times achieved by the experiments, and the results of the two algorithms are compared. Furthermore, new efficient algorithms are presented that take temporal errors into account. This, the approximate pattern matching version, could not be handled by the algorithms previously presented. The running times of two algorithmic variants are analyzed and compared and examples of their implementation are shown.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Bender M.A., Farach-Colton M.: The lca problem revisited. In: Gonnet, G.H., Panario, D., Viola, A. (eds) Latin American Theoretical Informatics (LATIN), Lecture Notes in Computer Science, vol. 1776, pp. 88–94. Springer, Berlin (2000)

    Google Scholar 

  2. Chan, J.W.T., Iliopoulos, C.S., Michalakopoulos, S., Rahman, M.S.: Erratic dancing. In: Jensen, K., (eds.) Proceedings of the 5th International Symposium on Computer Music Modeling and Retrieval (CMMR 2008), Re:New—Digital Arts Forum, pp. 117–129, Copenhagen, Denmark (2008)

  3. Chen, A.L.P., Iliopoulos, C.S., Michalakopoulos, S., Rahman, M.S.: Implementation of algorithms to classify musical texts according to rhythms. In: Spyridis, C., Georgaki, A., Kouroupetroglou, G., Anagnostopoulou, C., (eds.) Proceedings of the 4th Sound and Music Computing Conference, National and Kapodistrian University of Athens, pp. 134–141, Lefkada, Greece (2007)

  4. Christodoulakis M., Iliopoulos C.S., Rahman M.S., Smyth W.F.: Identifying rhythms in musical texts. Int. J. Foundat. Comput. Sci. 19(1), 37–51 (2008)

    Article  MATH  Google Scholar 

  5. Collins, N.: Beat induction and rhythm analysis for live audio processing: 1st year Ph.D. report (2004)

  6. Dixon S.: Automatic extraction of tempo and beat from expressive performances. J. New Music Res. 30(1), 39–58 (2001)

    Article  Google Scholar 

  7. Gabow, H., Bentley, J., Tarjan, R.: Scaling and related techniques for geometry problems. In: Symposium on the Theory of Computing (STOC), pp. 135–143. ACM Press, New York (1984) (Chairman-Richard DeMillo)

  8. Goto, M., Muraoka, Y.: A real-time beat tracking system for audio signals. In: Proceedings of the International Computer Music Conference, pp. 171–174. International Computer Music Association (1995)

  9. Gouyon F., Dixon S.: A review of automatic rhythm description systems. Comput. Music J. 29(1), 34–54 (2005)

    Article  Google Scholar 

  10. Hainsworth, S., Macleod, M.: Automatic bass line transcription from polyphonic music. In: Proceedings of the International Computer Music Conference (2001)

  11. Kubica, M., Walen, T.: Improved algorithm for rhythm recognition in musical sequences. In: Chan, J., Daykin, J.W., Rahman, M.S. (eds.) London Algorithmics 2008: Theory and Practice, Texts in Algorithmics, vol. 11. College Publications (2009)

  12. Orife, I.F.O.: Riddim: A rhythm analysis and decomposition tool based on independent subspace analysis. Master’s thesis, Dartmouth College (2001)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Spiros Michalakopoulos.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Chan, J.WT., Iliopoulos, C.S., Michalakopoulos, S. et al. Exact and approximate rhythm matching algorithms. Int J Digit Libr 12, 149–158 (2012). https://doi.org/10.1007/s00799-012-0085-0

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00799-012-0085-0

Keywords

Navigation