LRC lyrics Synchronization
I. PreparationsNow that we want to prepare a lyrics synchronization program, we need to prepare a song first. Let's take Jay Chou-Qinghua porcelain as an example. The first download is the "C:/my player/music/blue and white porcelain ". You can also download the blue/white porcelain LRC file online (for the address, see the appendix) and save the text as "C:/my player/
With a single English string, we can get the entire English string array, as shown below:
Public list
The cycle here is different from the acquisition time. I believe the viewer can understand why.
How can I obtain the file content? LRC is a text file. You can use file. readalllines provided by C # To get all the lines:
Private string [] Read the LRC file (string media file name) {// change the file name
This article mainly introduces how to use the Baidu Music Search api in python to download the lrc lyrics of a specified song and analyze the songs, if you need a friend, you can refer to this article. this is really a dry product. I got it for half a night last night. well, I started to write it after dinner at, and it's been ,,, newbie, sorry ....
To put it simply, Baidu provides an api for music search.
Http://box.zhangmen.baidu.com/x? Op = 12 c
Currently the music players on the market that show the lyrics have the same rules that require songs and. LRC lyrics have the same file name (that is, except for the extension. mp3,. wma 、.. LRC and so on, the point before the text, text format to be exactly the same, and placed in the same directory (that is, the same folder), with the display lyrics function of the player to play songs when the lyrics ca
Show
ttp://www.flashk.org/.....sukii-o/mp3/
S2 Music Player supports LRC lyrics display, it's got the address:
http://www.flashk.org/.....Sukii-o/mp3/
ZAs developed by S2 Music player LRC Lyrics principle (provided by ZAs):
--Interface--
function LOADLRC (path) {
Delete This.onenterframe;
Lrcdata.timer = new Array ();
Lrcdata.info = new Array ();
Mycodepage = System.usecodepage;
System.usecodepage = true;
LRC lyrics synchronization, we see the baidu Online lyrics synchronization function, now we also use flash to achieveSynchronization of lrc lyricsAndSynchronous display of lrc lyricsYou can also copy the text content, create a text document under "C: \ My Player \ LRC \", and paste the content, save the docum
Recently in a cool dog music lyrics collection found that cool dog music lyrics directly browse are "garbled", I usually see the lyrics are LRC format text, this cool dog-specific KRC format is apparently specially handled, usually with a cool dog to listen to music is not careful to see his lyrics are different, Just as with the daily listening to the difference is that you can highlight the lyrics verbatim.
So search the next found a Java version o
LRC Overview
LRC lyrics are specialized text-based lyrics that contain "tags" in the form. It was first proposed and applied in the program by Mr. Guo Xiangxiang (djohan. This type of lyrics file can be used to implement karaoke functions (special programs are required), and can be viewed and edited using common text processing software. Of course, in actual operations, special
The LRC is an abbreviation for the English lyric (lyrics), and is used as an extension of the lyrics file. The text file with the LRC extension can be displayed synchronously in various digital players. The LRC lyrics are a text-only-based lyrics-only format that contains the "*:*" form of the tag.
1. identification label (ID-TAGS)[ar: Artist name] [Ti: Son
Baidu:SoundHttp://box.zhangmen.baidu.com/x?op=12count=1title= have to love $$ Wilber Bai $lRCHttp://box.zhangmen.baidu.com/bdlrc/86/8654.lrcThis address resolves under:Http://box.zhangmen.baidu.com/bdlrc/This is the Baidu LRC lyrics storage address, the following 496 is a variable, the people that the song is different from the directory name, its algorithm is to take the lyrics file name (that is, 8654) divided by 100 , and then takes the largest int
Many netizens are very interested in the MP3 player I posted before. So I am going to write a tutorial to introduce some functions in detail...Principle:In fact, the lrc file is just a text document in a fixed format.By[Time] LyricsOr[Time] [time...] LyricsSave in this formSplit the line with a linefeed, and then split the lyrics and time. Save the lyrics and time to the array.Code: check the code directly.The code is not optimized, and the code is me
The LRC lyrics is a widely used lyrics file for parsingStandard format: [minutes: seconds. milliseconds] Lyrics1 ImportJava.io.BufferedReader;2 ImportJava.io.File;3 ImportJava.io.FileInputStream;4 ImportJava.io.InputStreamReader;5 Importjava.util.ArrayList;6 ImportJava.util.HashMap;7 Importjava.util.List;8 ImportJava.util.Map;9 ImportJava.util.Map.Entry;Ten ImportJava.util.regex.Matcher; One ImportJava.util.regex.Pattern; A - Public classTESTLRC { -
This time this is really dry, oh, last night to get a half night,,, from 8 o ' eat the meal began to write, until the quick 12 o'clock to fix,, novice, hurt Ah ....
The first simple say, Baidu provides a music search API, you want to Baidu request similar to
http://box.zhangmen.baidu.com/x?op=12count=1title= best loss friend $$ Eason Chan $
Address, Baidu will give you an XML return, as shown below
This XML file does does appear to has any style information associated with it. The document tre
Well, it was supposed to have been written last night, and it's been dragged to this morning because of some problems with the system. All right, no more nonsense.Always listen to the song, must have seen the lyrics it. Of course, the lyrics we're going to talk about here are the words with the LRC suffix. In addition, there are lyrics in QRC,KRC format. But in contrast, the LRC format lyrics are more commo
'Keep this declaration information during forwarding. This declaration does not affect your speed!***** Tianfeng AJAX set weather \ IP \ multi-language translation MP3 (LRC lyrics can be synchronized) \ Perpetual calendar query through ********'Author: Tian Feng'Site: http://www.52515.net'Email: chenshaobo@gmail.com'Web Development Group: 4635188 19182747'Qq: 76994859'Copyright: All Rights Reserved. The source code is public and can be used for all pu
'Keep this declaration information during forwarding. This declaration does not affect your speed!
***** Tianfeng Ajax set weather \ IP \ multi-language translation MP3 (LRC lyrics can be synchronized) \ Perpetual calendar query through ********
'Author: Tian Feng
'Site: http://www.52515.net
'Email: chenshaobo@gmail.com
'Web Development Group: 4635188 19182747
'Qq: 76994859
'Copyright: copyright,
Source codePublic, all functions can be used fo
This article mainly introduces the php implementation method for krc lyrics parsing and converting to lrc lyrics, if you need it, you can refer to a recent collection of Codoy music lyrics and find that the lyrics of Codoy music are "garbled" directly, and the lyrics you usually see are in lrc format, this kind of krc format for Codoy is obviously specially handled. it is usually different to listen to musi
Paste a document, is the basic idea of writing this program, of course, the specific program and this has some discrepancies, but in general the same. Beg for criticism./* Target: Under one folder all LRC lyrics files are imported, analyzed, and the final results are expressed in txt. *//* Analysis: As long as the inverted index can easily be entered into the lyrics of the index file into the il.txt, so there should be a function to implement the inpu
Recently, when collecting the lyrics of Codoy music, we found that the lyrics of Codoy music are directly browsed by quot; garbled quot;. the lyrics we usually see are in lrc format, this krc format for cool dogs is obviously specially handled. we usually use cool dogs... recently, when collecting the lyrics of Codoy music, we found that the lyrics of Codoy music are all "garbled" and the lyrics we usually see are all in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.