Pattern matching methods are used as an essential component in a large variation of multimedia applications. The search agents for Internet as well as various systems for retrieving images from image databases by image content are good examples. However, not too much research eeort has been directed yet for information retrieval in music databases. We present a coding of music (melodies) that is invariant under diierent musical keys and tempos. It can applied on melodies written in traditional notation using notes and staves. The conversion e.g. from MIDI les is straightforward. As our codes are linear discrete sequences, general string matching algorithms can be used for nding the occurrences of a melody sample in a music database. We report some experimental results on the performance of two alternative ways to organize such a search. One uses the suux-trie as an index for the database, the second makes an on{line search with the Boyer{Moore algorithm. Introduction In this paper we discuss some issues and ideas that we are experimenting with in our project which develops methods and software for music retrieval by music content. We use a simple two{dimensional relative coding to represent the melodies in the database. The coding of a note consists of two elements, the \vertical distance" or an interval between the note and its predecessor, and the \horizontal distance" or the relative duration of the note as compared to a designated base duration. The coding is invariant in two important respects, namely under transpositions and changes of the tempo. This considerably simpliies the music retrieval task. There are rather small number of intervals and relative durations of notes, that traditionally are used in (western) music. Therefore our coded presentation can be seen as a discrete linear string over a nite alphabet. Then the matching of a given melody sample, encoded in the same way, against the melodies in the database can be done by using the string matching algorithms originally designed for key{word matching in texts 3, 7].
[1]
Jonathan Foote,et al.
Content-based retrieval of music and audio
,
1997,
Other Conferences.
[2]
Ian H. Witten,et al.
The New Zealand Digital Library MELody inDEX
,
1997,
D Lib Mag..
[3]
김동규,et al.
[서평]「Algorithms on Strings, Trees, and Sequences」
,
2000
.
[4]
Esko Ukkonen,et al.
Approximate Boyer-Moore String Matching
,
1993,
SIAM J. Comput..
[5]
Gaston H. Gonnet,et al.
Lexicographical Indices for Text: Inverted files vs. PAT trees
,
1991
.
[6]
Brian Christopher Smith,et al.
Query by humming: musical information retrieval in an audio database
,
1995,
MULTIMEDIA '95.
[7]
Udi Manber,et al.
Fast text searching: allowing errors
,
1992,
CACM.
[8]
Peter Weiner,et al.
Linear Pattern Matching Algorithms
,
1973,
SWAT.
[9]
Ricardo A. Baeza-Yates,et al.
Fast and Practical Approximate String Matching
,
1992,
Inf. Process. Lett..
[10]
K. Järvelin,et al.
MUSIR - A Retrieval Model for Music
,
1998
.
[11]
Wojciech Rytter,et al.
Text Algorithms
,
1994
.
[12]
Robert S. Boyer,et al.
A fast string searching algorithm
,
1977,
CACM.