![]() |
关于音频搜索
参数myls的设定有疑问
另附程序: % Get the list of reference tracks to add (URLs in this case, but % filenames work too) tks= myls(['http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/*.mp3']); % Initialize the hash table database array clear_hashtable % Calculate the landmark hashes for each reference track and store % it in the array (takes a few seconds per track). add_tracks(tks); % Load a query waveform (recorded from playback on a laptop) [dt,srt] = mp3read('Q-full-circle.mp3'); % Run the query R = match_query(dt,srt); % R returns all the matches, sorted by match quality. Each row % describes a match with three numbers: the index of the item in % the database that matches, the number of matching hash landmarks, % and the time offset (in 32ms steps) between the beggining of the % reference track and the beggining of the query audio. R(1,:) % 5 18 1 18 means tks{5} was matched with 18 matching landmarks, at a % time skew of 1 frame (query starts ~ 0.032s after beginning of % reference track), and a total of 18 hashes matched that track at % any time skew (meaning that in this case all the matching hashes % had the same time skew of 1). % % Plot the matches illustrate_match(dt,srt,tks); colormap(1-gray) % This re-runs the match, then plots spectrograms of both query and % the matching part of the reference, with the landmark pairs % plotted on top in red, and the matching landmarks plotted in % green. Max entries per hash = 20 Target density = 10 hashes/sec Adding #1 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/01-Nine_Lives.mp3[/url] ... Adding #2 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/02-Falling_In_Love.mp3[/url] ... Adding #3 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/03-Hole_In_My_Soul.mp3[/url] ... Adding #4 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/04-Taste_Of_India.mp3[/url] ... Adding #5 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/05-Full_Circle.mp3[/url] ... Adding #6 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/06-Something_s_Gotta_Give.mp3[/url] ... Adding #7 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/07-Ain_t_That_A_Bitch.mp3[/url] ... Adding #8 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/08-The_Farm.mp3[/url] ... Adding #9 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/09-Crash.mp3[/url] ... Adding #10 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/10-Kiss_Your_Past_Good-bye.mp3[/url] ... Adding #11 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/11-Pink.mp3[/url] ... Adding #12 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/12-Attitude_Adjustment.mp3[/url] ... Adding #13 [url]http://labrosa.ee.columbia.edu/~dpwe/tmp/Nine_Lives/13-Fallen_Angels.mp3[/url] ... added 13 tracks (130 secs, 1194 hashes, 9.1846 hashes/sec) landmarks 338 -> 288 hashes ans = 5 18 1 18 landmarks 338 -> 288 hashes |
所有时间均为北京时间。现在的时间是 12:18。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.