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.
Similar content being viewed by others
References
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)
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)
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)
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)
Collins, N.: Beat induction and rhythm analysis for live audio processing: 1st year Ph.D. report (2004)
Dixon S.: Automatic extraction of tempo and beat from expressive performances. J. New Music Res. 30(1), 39–58 (2001)
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)
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)
Gouyon F., Dixon S.: A review of automatic rhythm description systems. Comput. Music J. 29(1), 34–54 (2005)
Hainsworth, S., Macleod, M.: Automatic bass line transcription from polyphonic music. In: Proceedings of the International Computer Music Conference (2001)
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)
Orife, I.F.O.: Riddim: A rhythm analysis and decomposition tool based on independent subspace analysis. Master’s thesis, Dartmouth College (2001)
Author information
Authors and Affiliations
Corresponding author
Rights 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
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00799-012-0085-0