Algorithms for computing geometric measures of melodic similarity

Greg Aloupis, Thomas Fevens, Stefan Langerman, Tomomi Matsui, Antonio Mesa, Yurai Nuñez, David Rappaport, Godfried Toussaint

Research output: Contribution to journalArticlepeer-review


Two algorithms to find the minimum area between two given orthogonal melodies, Ma and Mb, of size n and m, respectively (n > m) are presented. Both algorithms can be used for cyclic melodies as well as in the context of retrieving short patterns from a database. The algorithms are described for the case where the melodies are cyclic. The first algorithm assumes that the Θ direction is fixed, and it runs in O(n) time. The second algorithm finds the minimum area when both the z and Θ relative positions can be varied. It is proved that it runs in O(nmlogn) time. In each case, it is assumed that the edges defining Ma and Mb are given in the order in which they appear in melodies. Finally, natural extensions are discussed both for the polygonal description of melodies and for different types of queries.

Original languageEnglish (US)
Pages (from-to)67-76
Number of pages10
JournalComputer Music Journal
Issue number3
StatePublished - Sep 2006

ASJC Scopus subject areas

  • Media Technology
  • Music
  • Computer Science Applications


Dive into the research topics of 'Algorithms for computing geometric measures of melodic similarity'. Together they form a unique fingerprint.

Cite this