Music Similarity Comparison and Approximate Search
- Author
- YeLin
- Advisor
- LiXiongFei
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 81
- Citations
- 0
Abstract
There are many MIDI files on the Internet,MIDI files is different from sample waveform files,which use MIDI message to record each note,it is equivalent to the preservation of the music on the computer,this allows these computer to identify at these notes to skip the analog signal the conversion process.Therefore,these MIDI files for the bulk of the analysis,comparative music data provided strong support.Typically,songs are searched through its name,author,artist,lyrics,such as keywords, but sometimes the user doesn’t know above-mentioned information or ignorant confusion, for them only as a search keyword is the fragment of melody,then the melody-based search engine will help them find the target song.This paper completely builds a search engine which uses melody fragments as key words,including the download of data,data processing,search the three main modules.In the download module,the paper uses Heritrix and a self-implement spider program. Spider is an important part of search engine,it download page on the World Wide Web. The traditional spider start from one or a number of pages,it gets URLs from these pages, in the process of crawling web pages,the spider continuously extracted from the current page URL Add a new queue,until the system meet the conditions to stop.Heritrix is the Internet Archive’s open-source,extensible,web-scale,archival-quality web crawler.The best of Heritrix is developers can extend its various components,to achieve their own crawling logic.This paper describes the configuration and manipulation of Heritrix,and uses its download a large number of MIDI files.However,Heritrix can’t download the resources which need user to register and log in.For this problem,we designed a special spider to download dynamic pages,and it can analog user’s log in.Nowadays the Internet, static pages are more and more less,in particular,information or resources are included in the larger web,have to use dynamic pages to display,because this paper is to download MIDI files,so during visiting the website which includes such resources,the steps to download each file are the same,that is,the user opens the order of dynamic pages are fixed,such as to open a page,click some links,and then in the new page open new links, until the page contains the resources is found.Therefore start from the home,users traverse all the pages,forming a tree structure.In this paper,the path of the tree stored in the XML file,using JDOM to parse the XML file,the tree will be passed on to the spider,spider program using HttpClient to download web pages and maintaining the client’s Cookie,with HttpParser analysis of web content,in accordance with the tree path,the URLs in pages will be flitted or downloaded,finally,MIDI files are gotten. In each track of MIDI files,all notes are express with note on and note off message,in order to facilitate the analysis,this paper constructs the following objects with Java Sound API:ScoreTrack,Bar,TimeStamp,Note.These objects were included in the relationship. Among them,the Track,Bar and Note in the same meaning with the score,The TimeStamp is a collection which contains the Notes in the same time.This paper presents a method for auto main melody track identification.This method is mainly divided into four steps:1.Exclude the track that can’t be melody.2.For each track,build a Boolean array with the length of the number of bars in that track,called characteristic array,for the identification of each bar in the track has the characteristics of melody.Analyze each bar,for the array assignment.If the invalid bar,the array element values recorded as false.3.Analyze the characteristics Boolean array to filter out unqualified tracks,add the remaining to candidate track set.4.By comparing the candidate tracks,select the main melody track.Experimental results show that the correct recognition rate of the method is 91%, compared with methods based on probability and statistics,this method eliminates manual marking steps,and for the canonical MIDI files which indeed contain the main melody track,the correct recognition rate reaches 96.8 percent,this method provides a strong support to the melody search engine.After extracting the melody,it is transformed to string and stored in database.This paper implements an approximate search algorithm,which is divided into two parts: multi-pattern search and check the edit distance.In the single pattern matching algorithm, BM algorithm is a classic matching algorithm,QS algorithm is a simplified form BM,full use of pattern unmatched.Aho-Corasick algorithm is a classic multi-pattern matching algorithm,this paper build a multi-pattern search algorithm base on QS algorithm,the Aho-Corasick algorithm is used to the match step of the QS algorithm,this can reduce multi string comparison to once.This paper obtains edit distance between strings by the dynamic programming.Finally,this paper discusses two approaches to compare music similarity.In music theory,there is no specific criteria for measuring the similarity,the so-called similarity is often from people’s feeling,but because of the number of people heard the music are limited,so the job to look for similarity among large numbers of music works is fit by the computer.Starting from this point to this paper discussed these two methods,aims to narrow the scope of comparison.One is to extract the chord sequence of the work,anther is count the notes in each section.The central idea of these two methods are trying to convert the music segment fragment to a character,and extract patterns from character sequence,so the problem is converted to comparison between pattern strings.The experimental results show that the match the number of the first method is larger;the second is too small,this is because the similar requirement of the first is more lenient.Although both methods should not become a sufficient condition(in fact there is no sufficient condition exist) for similarity comparison,but the first method,when the chord sequences extracted are accurate,it can be a necessary condition to narrow the scope of comparison,has a reference value.
Table of contents
Summary 4-7
Chapter 1 Introduction 7-10
1.1 Background 7
1.2 research content and status quo 7-9
1.2.1 melody search engine 7-8
1.2.2 music similar comparison 8-9
1.3 development tools 9
1.4 of this paper structural arrangements 9-10
Chapter 2 of the MIDI data to download and pre- 10-23
2.1 Web crawler 10
2.2 Heritrix the configuration and use 10-14
2.2.1 Heritrix configuration 10-11
2.2.2 the Heritrix of use 11-14
2.3 can simulate login to download crawlers 14-18
2.3.1 HttpClient About 15
About
2.3.2 HtmlParser 15-16
2.3.3 simulated landing 16
2.3.4 path download 16-18
2.4 Data Preprocessing 18-23
2.4.1 MIDI Information About 18-19
2.4.2 Java Sound About 19-21
2.4.3 MIDI files of music objects 21-23
Chapter 3, the main theme of extract 23-29
3.1 melody characteristics 23
3.2 the main theme track identification 23-27
3.2.1 directly excluded 24
3.2.2 section of the melody characteristics of 24-26
3.2.3 based on the characteristics of Boolean array to extract the candidate tracks 26-27
3.2.4 the main theme track elected 27
3.3 experiment 27-28
3.3.1 Experimental results 27
3.3.2 Experimental results 27-28
3.3.3 Comparison of 28
3.4 data saved 28-29
Chapter 4
fuzzy search algorithm 29-37
4.1 Edit Distance (Levenshtein Distance) 29-31
4.1.1 Dynamic Programming Method edit distance 29-31
4.2 string fuzzy search (string matching with errors) 31-37
4.2.1 Aho-Corasick automaton algorithm introduced 31-34
4.2.2 BM algorithm with the QS algorithm, 34-35
4.2.3 Fuzzy search algorithm to achieve 35-37
Chapter 5
music similar comparison 37-44
5.1 chord sequence-based methods 37-39
5.1.1 chord extract 37-39
5.1.2 the data saved 39
5.2 based on statistical note 39-40
5.2.1 notes statistics 40
5.2.2 the data saved 40
5.3 experiment 40-44
5.3.1 a match result 41
5.3.2 Method two matches 41-43
5.3.3 Comparison and Conclusion 43-44
Chapter 6 Summary and outlook 44-45
6.1 in this article summarize 44
6.2 Looking 44-45
References 45-47
Appendix 47-52
Crawler class parsePage function 47-48
track construction 48
Timestamp Sequences 48-49
fuzzy search algorithm 49-50
Goto function and the Output function to achieve 50-52
thank 52-53
Summary 53-55
Abstract 55-57
Related dissertations
- Research and Implementation of Android Based Music Recognition and MIDI Output
- Computer Music Personal Emotion Analysis Model Based on Content
- A SOC Chip for Digital Music Synthesize and Effect Process
- Chinese (continental) creation characteristic of early electronic music
- On the Teaching and Appliance of Computer Music
- The Use of Computer Music Technology in Normal University Teaching
- Status in Quo and Thinkings of the Education of Computer Music in High Normal College
- Design and Implementation of Musical Fountain System
- Thinking about Computer Music Making Course Teaching
- The Design and Implementation of Multiple-Channel Wavetable Music Synthesizer
- The Application of the Software in Teaching the Computer Music
- Computer Musical Fabricated Timbre & Digital Audio Frequency Technology
- The Designing and Realization of the Ear Training Software in the Music Teaching
- The Research and Application of Computer Music
- Based on Neural Network Vocal Performance Evaluation System and Its Application in Piano Teaching
- A Probe into Auxiliary Voice Production Means in the Electronic Organ Composition
- Analysis and Design of Musical Synthesizer XDC18A Based on Digital Frequency Modulation
- The MIDI Music to Video Software Design Based on ARM
- Development of a Portable Virtual Musical Instrument Based on Video Recognition
- Research on the Tips Musical System and Video-based Virtual Instrument