Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
初级会员
注册日期: 2012-04-30
年龄: 36
帖子: 1
声望力: 0 ![]() |
![]()
参数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 http://labrosa.ee.columbia.edu/~dpwe...Nine_Lives.mp3 ... Adding #2 http://labrosa.ee.columbia.edu/~dpwe...ng_In_Love.mp3 ... Adding #3 http://labrosa.ee.columbia.edu/~dpwe...In_My_Soul.mp3 ... Adding #4 http://labrosa.ee.columbia.edu/~dpwe...e_Of_India.mp3 ... Adding #5 http://labrosa.ee.columbia.edu/~dpwe...ull_Circle.mp3 ... Adding #6 http://labrosa.ee.columbia.edu/~dpwe...Gotta_Give.mp3 ... Adding #7 http://labrosa.ee.columbia.edu/~dpwe...at_A_Bitch.mp3 ... Adding #8 http://labrosa.ee.columbia.edu/~dpwe...8-The_Farm.mp3 ... Adding #9 http://labrosa.ee.columbia.edu/~dpwe...s/09-Crash.mp3 ... Adding #10 http://labrosa.ee.columbia.edu/~dpwe...t_Good-bye.mp3 ... Adding #11 http://labrosa.ee.columbia.edu/~dpwe...es/11-Pink.mp3 ... Adding #12 http://labrosa.ee.columbia.edu/~dpwe...Adjustment.mp3 ... Adding #13 http://labrosa.ee.columbia.edu/~dpwe...len_Angels.mp3 ... added 13 tracks (130 secs, 1194 hashes, 9.1846 hashes/sec) landmarks 338 -> 288 hashes ans = 5 18 1 18 landmarks 338 -> 288 hashes |
![]() |
![]() |